简体   繁体   English

限制Power BI中的度量过滤

[英]Restrict filtering of measure in Power BI

Can someone help me finding a way to restrict a measure getting filtered in Power BI? 有人可以帮助我找到一种方法来限制在Power BI中被过滤的度量吗?

I have a visual that displays the percentage of manual activities occurred in a particular region. 我有一个视觉效果,可以显示在特定区域发生的手动活动的百分比。 The calculation done is 计算完成是

 RegionManualActivityCount*100/CountryManualActivityCount

I have around 10 regions in a country and I have wrote a general measure to do the calculation. 我在一个国家/地区大约有10个地区,并且已经编写了一个总体指标来进行计算。 In Power BI for each region's visual I have a visual filter applied based on Region Name. 在Power BI中,每个区域的视觉效果都有一个基于“区域名称”的视觉滤镜。 But the problem is the CountryManualActivityCount is also getting filtered based on Region Name. 但是问题是CountryManualActivityCount也基于Region Name被过滤。 I do not want the CountryManualActivityCount in the measure calculation to be filtered. 我不希望对度量计算中的CountryManualActivityCount进行过滤。

Can someone help me with this? 有人可以帮我弄这个吗?

you can use the Dax function ALL or ALLEXCEPT to remove the applied filters to your report. 您可以使用Dax函数ALL或ALLEXCEPT删除报表中应用的过滤器。 Something like CALCULATE(Table,RegionManualActivityCount*100/CountryManualActivityCount,ALL(Table[RegionName])) 类似于CALCULATE(Table,RegionManualActivityCount*100/CountryManualActivityCount,ALL(Table[RegionName]))

It will remove your filters on Region Name in this particular measure. 在此特定措施下,它将删除“地区名称”上的过滤器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM