Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Excel 功率BI(DAX):按条件过滤的不同计数_Excel_Excel Formula_Dax_Powerbi - Fatal编程技术网

Excel 功率BI(DAX):按条件过滤的不同计数

Excel 功率BI(DAX):按条件过滤的不同计数,excel,excel-formula,dax,powerbi,Excel,Excel Formula,Dax,Powerbi,我有一个出版商的数据集,每个月都有收入。如果某个月的收入等于或大于1000,则出版商被视为当月“活跃” 现在,我想使用Power BI(DAX)统计每月趋势中“活跃”出版商的明显数量 示例数据集 下面是我尝试的一个度量公式: DistCountActiveMonths = CALCULATE(DISTINCTCOUNT('Net Revenue Data'[Publisher Name]),FILTER('Net Revenue Data','Net Revenue Data'[Active

我有一个出版商的数据集,每个月都有收入。如果某个月的收入等于或大于1000,则出版商被视为当月“活跃”

现在,我想使用Power BI(DAX)统计每月趋势中“活跃”出版商的明显数量

示例数据集

下面是我尝试的一个度量公式:

DistCountActiveMonths = CALCULATE(DISTINCTCOUNT('Net Revenue Data'[Publisher Name]),FILTER('Net Revenue Data','Net Revenue Data'[Active Month]=1))
请告知如何更正此公式以达到预期结果,例如:


谢谢,我还有一个问题要问。你介意看一下吗?幂BI(DAX):计算测量字段的MoM方差
DistinctCountActiveMonths =
CALCULATE(
    DISTINCTCOUNT( 'Net Revenue Data'[Publisher Name] )
    ,'Net Revenue Data'[Active Month] = 1
)