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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Ben_Kronk
Frequent Visitor

Dynamic numerator based on slicer selections

I have a requirement for a Power BI dashboard and I'm not sure how to approach it, or if it's possible.


I need a calculation where the numerator is dynamic based on the slicer selection, but the denominator is static for each selection. The output should be a bar chart with the bars representing the percentages for each line item/category based on the slicer selection.

 

For example, let's say I need the percentage of Accounts Receivable in the Midwest and South Regions relative to the whole
company, so the selection of the Midwest plus the South (which is the numerator) divided by all Regions' Accounts Receivable (denominator) gives me X%.

 

In other case, maybe I want the percentage of just the Midwest Region for Accounts Receivable, so the bar chart would update to show the percentage of just the Midwest Accounts Receivable (numerator) divided by all Regions Accounts Receivable (denominator).

 

I have 30 line items that this would need to work for and each line should update based on the Region selection, whether choosing one region or more than one.

 

The basic question is: Can I use the selection from a slicer to make a measure with a dynamic numerator but a static
denominator based on a unique line item/category? And if it's not possible to do this specifically, is there another potential solution?

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

Hi@Ben_Kronk,

 

You can use the pattern below for the denominator. The ALL function removes the region filter, resulting in the total of all regions. The numerator is simply SUM ( [Amount] ).

 

All Regions A/R =
CALCULATE ( SUM ( [Amount] ), ALL ( Regions ) )

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
DataInsights
Super User
Super User

Hi@Ben_Kronk,

 

You can use the pattern below for the denominator. The ALL function removes the region filter, resulting in the total of all regions. The numerator is simply SUM ( [Amount] ).

 

All Regions A/R =
CALCULATE ( SUM ( [Amount] ), ALL ( Regions ) )

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thank you!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors