The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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:
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
33 | |
13 | |
11 | |
9 | |
8 |