Power BI(DAX):根据条件过滤不同的计数
我有一个数据集与出版商收入按月。 如果发行商在特定月份的收入等于或大于1000,则被认为是“活跃”月份。
现在,我想用Power BI(DAX)来统计每月趋势中“活跃”发布商的数量。
示例数据集
这是我尝试的一个衡量公式:
DistCountActiveMonths = CALCULATE(DISTINCTCOUNT('Net Revenue Data'[Publisher Name]),FILTER('Net Revenue Data','Net Revenue Data'[Active Month]=1))
请告知如何更正此公式以达到预期的结果,例如:
DistinctCountActiveMonths = CALCULATE( DISTINCTCOUNT( 'Net Revenue Data'[Publisher Name] ) ,'Net Revenue Data'[Active Month] = 1 )