Power BI:如何计算另一列的不同值?

问题描述 投票:0回答:1

我该如何执行以下操作:

这是我想要的输出:

这是我尝试过的代码。我也尝试过使用 SUMMARIZE 和 GROUPBY 来做到这一点,但它不起作用。

count of listings by borough = CALCULATE(DISTINCTCOUNT('Calendar'[listing_id]), FILTER(Listings, Listings[neighbourhood]))
group-by count powerbi dax powerbi-desktop
1个回答
0
投票

Table 2 = 
SUMMARIZECOLUMNS('Table'[neighbourhood], "count", COUNTROWS('Table'))
© www.soinside.com 2019 - 2024. All rights reserved.