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
heidibb
Helper IV
Helper IV

Fixed Denominator Calculation that Includes Filter

Hello!

I have a measure: 

Denominator = CALCULATE(DISTINCTCOUNT(Combined[User Story ID]), filter('Stories - Today','Stories - Today'[ReportStatusRank] <> 99))
 
I would like this number to react to a single slicer only (Epic), but stay fixed otherwise. 
 
I know this is likely something to do with ALL, ALLSELECTED or ALLEXCEPT, but these thoroughly confuse me.
 
Thoughts?
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@heidibb , Try like

 

Denominator = CALCULATE(DISTINCTCOUNT(Combined[User Story ID]), filter('Stories - Today','Stories - Today'[ReportStatusRank] <> 99), allexpect('Stories - Today', 'Stories - Today'[Epic]))

 

or

 

Denominator = CALCULATE(CALCULATE(DISTINCTCOUNT(Combined[User Story ID]), filter('Stories - Today','Stories - Today'[ReportStatusRank] <> 99)), allexpect('Stories - Today', 'Stories - Today'[Epic]))

View solution in original post

2 REPLIES 2
heidibb
Helper IV
Helper IV

Thank you! That second option was the winner. I knew the correct components, but not how to structure them properly. Thank you so much!

amitchandak
Super User
Super User

@heidibb , Try like

 

Denominator = CALCULATE(DISTINCTCOUNT(Combined[User Story ID]), filter('Stories - Today','Stories - Today'[ReportStatusRank] <> 99), allexpect('Stories - Today', 'Stories - Today'[Epic]))

 

or

 

Denominator = CALCULATE(CALCULATE(DISTINCTCOUNT(Combined[User Story ID]), filter('Stories - Today','Stories - Today'[ReportStatusRank] <> 99)), allexpect('Stories - Today', 'Stories - Today'[Epic]))

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.