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
Anonymous
Not applicable

Filter on Measures

I have a chart where I am bring values from 2 measures.

The issue is I want to see the bars for value > 0 .

Since there are two different measures in one Bar chart , If Iapply visual  filter on first, the second goes away.

Measure_Abc > 0

 

Is there a way I can create a filter where I only see values when M_ABC > 0 OR M_XYZ > 0?

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

Hello @Anonymous 

If you add a measure like 

Check = [M_ABC] + [M_XYZ]

You can apply the new measure as a filter on the visual and set the fitler to > 0

View solution in original post

3 REPLIES 3
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

Could you tell me if your problem has been solved? If it is, kindly mark the helpful answer as a solution if you feel that makes sense. Welcome to share your own solution. More people will benefit from here.

 

Best Regards,

Xue Ding

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-xuding-msft
Community Support
Community Support

Hi @Anonymous ,

The measures interact with each other because they are from the same table. There is not an option to implement it directly.

I created a sample with a new measure and a slicer to filter. And I attached my sample you can download.

 

  • create a new table manually

3.PNG

  • create a measure
Measure 3 = 
var a = SELECTEDVALUE('Table 1'[Column1])
return 
SWITCH(TRUE(),a = "Measure > 0",CALCULATE([Measure],FILTER('Table',[Measure] >0)),a = "Measure 2 > 0",CALCULATE([Measure 2],FILTER('Table',[Measure 2] >0)))

4.PNG5.PNG

Best Regards,

Xue

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
jdbuchanan71
Super User
Super User

Hello @Anonymous 

If you add a measure like 

Check = [M_ABC] + [M_XYZ]

You can apply the new measure as a filter on the visual and set the fitler to > 0

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.