遵循本页概述的步骤,但稍作调整:
不要创建参数。相反,创建一个计算字段来测试是否存在多个小计。由于小计是沿着特定的维度进行的,因此我们需要查看该维度的所有值,并获得该维度值的不同计数:
ATTR( {EXCLUDE [dimensions], [in], [view]: COUNTD([subtotal dimension])} ) > 1
([dimensions]、[in]、[view] 应该替换为视图中维度的实际名称,而 [subtotal dimension] 当然应该是显示小计的维度。在附加的示例工作簿中,该维度是[类别]。)
复制工作表并关闭复制表上的小计。
将计算字段添加到每个字段的筛选器功能区上,但在小计打开的情况下,在表格上将筛选器设为 True,在小计关闭的情况下,在表格上将筛选器设为 False。(如果您无法在筛选器选项中显示“False”,请先将维度筛选为只有一个值。)
然后按照“表格选择菜单”帮助页中的说明,继续将表格放置在仪表板上。
请参阅所附的工作簿中的实施示例。
001473542

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.