有没有一种方法可以轻松地计算 powerbi 报告页面上 table 中的行数?

Is there a way to easily count rows in a table on the report page in powerbi?

在报告选项卡上创建 table 后,我需要计算 table 中的行数,这看起来非常简单,对吧?我同意,应该如此。

好吧,如果我在 "values" 列表中添加另一个字段并尝试将其设为 "count" 或 "count (distinct)" 类型,那么 table 的过滤器似乎受到影响,我在 table 中得到的信息与我之前看到的不同。诡异的。

因此,我需要一种方法来计算报告选项卡上 table 中的行数,而无需在 table 中添加另一列。

如有任何建议,我们将不胜感激。如果需要可以提供更多信息!

CreatedCounts = 
CALCULATE(COUNT('Bugs - All history by month'[Work Item Id]),
DATESBETWEEN('Bugs - All history by month'[Created Date],
MIN('Bugs - All history by month (2)'[Iteration Start Date]),
MAX('Bugs - All history by month (2)'[Iteration End Date])))

这是我想出的,据我所知,它完全按照我的意愿工作,但我并不是真的 100% 理解它为什么有效,所以如果有人可以提供解释(或更好的解决方案) !) 请告诉我,谢谢!