cancel
Showing results for 
Search instead for 
Did you mean: 
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
Community Champion
Community Champion

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

donjek
Frequent Visitor

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!

View solution in original post

Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors
Top Kudoed Authors