我有一个SQL表(或BDC列表,如果更容易),我想拥有某些值的计数。我想看看表中每个值中有多少个。我看到的性能点的所有内容都是总计(总和)列,我该如何报告过滤计数?

谢谢,

有帮助吗?

解决方案

在仪表板设计器中的数据连接下单击数据源。

转到“查看”选项卡,然后单击要计算的列。在详细信息窗格下,您可以更改聚合,默认值为“总和”,单击下拉列表,您应该在那里计数。

其他提示

该解决方案也适用于外部列表吗?如果没有,这是使用SQL视图完成的解决方案:

-- Create a view that will combine all of my rows that were inserted on the same date and
-- provide a column with the number of other rows with that date

select day_of_submission, sum(1) as [Count]
from my_table 
group by day_of_submission
许可以下: CC-BY-SA归因
scroll top