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
donjek
Frequent Visitor

conflicting filters Slicer with Measure

I have a measures

1. sums qty where cat <> 'A'

 

there are many other categories

 

when the slicer is selected with only cat 'A' you would expect measure 1 to show 0? but instead it shows the total of every other cat?

 

1 ACCEPTED SOLUTION
donjek
Frequent Visitor

I adjusted to 

Quantity Non Billable = CALCULATE(SUM('fact_Time Sheet Detail'[Quantity]), KeepFilters(dim_Resource[Global Dimension 2 Code] <> "ADM"), 'fact_Time Sheet Line'[Chargeable] = 0)

 

It's working now... Thanks!

View solution in original post

3 REPLIES 3
selimovd
Super User
Super User

Hey @donjek ,

 

that depends on how exactly you wrote your measure.

Please post the actual measure you are using and we can answer your question. Don't post pseudocode, that will just lead to pseudo answers...

 

Best regards

Denis

Hi, Thanks for the reply!

 

here is the measure:

Quantity Non Billable = CALCULATE(SUM('fact_Time Sheet Detail'[Quantity]), dim_Resource[Global Dimension 2 Code] <> "ADM", 'fact_Time Sheet Line'[Chargeable] = 0)
the slicer would be selected to only show ADM
 
donjek
Frequent Visitor

I adjusted to 

Quantity Non Billable = CALCULATE(SUM('fact_Time Sheet Detail'[Quantity]), KeepFilters(dim_Resource[Global Dimension 2 Code] <> "ADM"), 'fact_Time Sheet Line'[Chargeable] = 0)

 

It's working now... Thanks!

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.