Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
I have two different measures for calculating Turnover because the logic changes if the data is filtered: "Turnover % (Division)" and "Turnover % (Total)"
I'd like to have a third measure that dynamically switches between the two measures depending on if it's evaluating at the Grand Total. The below screenshot is showing a Matrix but I'd also be using this where it's controlled via a slicer (where no selection is made in the slicer = Grand Total).
I've previously been able to switch between measures dynamically using IF(ISFILTERED(...) but that isn't helping here, likely because I need the Grand Total to work in the absence of any filter selection.
My current (not working) measure is below:
Any help is greatly appreciated!
Thank you!
Solved! Go to Solution.
please try the following
manually create a single column table that contains the names of the three measures
create a measure as follows
Turnover (Dynamic) % =
SWITCH (
SELECTEDVALUE ( Measures[MeasureName] ),
"Turnover % (Division)", [Turnover % (Division)],
"Turnover % (Total)", [Turnover % (Total)],
IF (
ISFILTERED ( 'DeptStructure'[Department Code] ),
[Turnover % (Division)],
[Turnover % (Total)]
)
)
Place Measures[MeasureName] in the columns of the matrix and place the above measure at the values.
please try the following
manually create a single column table that contains the names of the three measures
create a measure as follows
Turnover (Dynamic) % =
SWITCH (
SELECTEDVALUE ( Measures[MeasureName] ),
"Turnover % (Division)", [Turnover % (Division)],
"Turnover % (Total)", [Turnover % (Total)],
IF (
ISFILTERED ( 'DeptStructure'[Department Code] ),
[Turnover % (Division)],
[Turnover % (Total)]
)
)
Place Measures[MeasureName] in the columns of the matrix and place the above measure at the values.
I think that did the trick!
I'm happy to know I was somewhat close with how I was approaching it.
Thanks so much!
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 |
---|---|
9 | |
9 | |
7 | |
6 | |
5 |
User | Count |
---|---|
20 | |
11 | |
10 | |
9 | |
6 |