Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.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
Powerbi 如何对电源BI进行动态滤波?_Powerbi_Dax - Fatal编程技术网

Powerbi 如何对电源BI进行动态滤波?

Powerbi 如何对电源BI进行动态滤波?,powerbi,dax,Powerbi,Dax,如何在Power BI图表上制作动态过滤器 我有一个月表,它包含以下值:1,2,3,4,5,6,7,8,9,10,11,12。我不想显示大于当前月份MONTHTODAY的月份的数据 我想要这样的东西: 您可以设置一个度量来确定是否显示特定月份,如下所示: Show = IF(FIRSTNONBLANK('Month'[Month], 13) <= MONTH(TODAY()), 1, 0) 然后您可以将此度量添加到视觉级别过滤器,并将其设置为1 结果:

如何在Power BI图表上制作动态过滤器

我有一个月表,它包含以下值:1,2,3,4,5,6,7,8,9,10,11,12。我不想显示大于当前月份MONTHTODAY的月份的数据

我想要这样的东西:


您可以设置一个度量来确定是否显示特定月份,如下所示:

Show = IF(FIRSTNONBLANK('Month'[Month], 13) <= MONTH(TODAY()), 1, 0)
然后您可以将此度量添加到视觉级别过滤器,并将其设置为1

结果: