Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Petja
Advocate II
Advocate II

Measure showing different values on different visuals

Hi,

 

I am trying to create a measure which could be used to show/hide a visual based on selection on a table. I have one visual on the same report that this works on. Let's say the measure is called "mask" and when mask = 1 it should hide the visual. I put the mask variable on a card visual and on a donut chart. When the appropriate selection is on (visual should show) the card visual shows "2" as the mask value but in the donut chart the mask value is "1".  This causes the filter to not work correctly. Any ideas what could be the issue?

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @Petja,

I think they should be related to visual aggregations, measure expression result will change based on the row context. You can take a look at the following link that mentions row and filter context:

Row Context and Filter Context in DAX 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @Petja,

I think they should be related to visual aggregations, measure expression result will change based on the row context. You can take a look at the following link that mentions row and filter context:

Row Context and Filter Context in DAX 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Petja
Advocate II
Advocate II

Managed to get it working by removing one variable from the legend of the donut chart. Still, I have absolutely no idea how this advanced filtering is supposed to function.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.