Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi members,
I have a table where I need to use slice the Amount by industry/department/group.
However, the tricky part is that when slicing Industry the amount has to be filtered by CATEGORY [CO_101] and [CO_601].
While slicing department, the amount has to be filtered by CATEGORY [CO_301].
When slicing group, the amount has to be filtered by CATEGORY [CO_401].
I wonder how to perform this type of calculation?
The end result I need is to place this measure into a bar chart and people can use slicers to look from different view.
PBIX Link: https://drive.google.com/file/d/1yH8zMARc2YZbGv4C-vLJN6cUvmxdViRK/view?usp=sharing
Thank you,
Laurence
Solved! Go to Solution.
Hi,
You can create SWITCH measure which changes calculation logic based on slicer selection. Here is an example of the logic:
Proud to be a Super User!
Hi,
You can create SWITCH measure which changes calculation logic based on slicer selection. Here is an example of the logic:
Proud to be a Super User!
Thank you ValtteriN for the suggestion!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
11 | |
11 | |
10 | |
6 |