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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Users online (1,098)