Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi there, I am trying to set up a report so that a viewer can select the constraints on a calculation. Specifically, I want them to be able to specify what to include in the denominator of a percentage calculation. Here is a screenshot:
I want the viewer to be able to specify whether the percentages displayed are calculated within the constraints selected in the slicers. Currently, I am calculating the percentages this way to have the denominator reflect the institutions and years displayed:
Solved! Go to Solution.
Thanks, Alexis! Unfortunately this didn't work for me. This adjusted based on the selections within the filters I had set up, but what I wanted was the ability for the viewer to decide which filters it should adjust for vs not.
But! I figured it out. It's not elegant and probably not the most efficient way to do it, but here's what I did...
I created a table with the four slicers and all the possible combined values of including/excluding them. It looks like this:
Then, I just made a verrrrry long calculation for my denominator that considered all the possible combinations:
ALLSELECTED should let you read in the slicer filter context.
Denominator =
CALCULATE ( SUM ( CSV_compiled[Degree_Count] ), ALLSELECTED ( CSV_compiled ) )
Oh, and here's what the final dashboard looks like:
Thanks, Alexis! Unfortunately this didn't work for me. This adjusted based on the selections within the filters I had set up, but what I wanted was the ability for the viewer to decide which filters it should adjust for vs not.
But! I figured it out. It's not elegant and probably not the most efficient way to do it, but here's what I did...
I created a table with the four slicers and all the possible combined values of including/excluding them. It looks like this:
Then, I just made a verrrrry long calculation for my denominator that considered all the possible combinations:
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 18 | |
| 14 | |
| 14 |