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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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