Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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:
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |