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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello There,
I have scenario which is as follows:
The requirement is that - There is a slicer which contains a dropdown consisting of values PC and UC.
In the Data Pane I have PC Calculated measures and UC calculated measures seperately around 50 to 60 measures for each.
So, now the requirement is that When I select UC from the Slicer Dropdown all my visuals, charts, KPI's, tables should take values from UC Calculated measures present in the data pane, and when I select PC from slicer dropdown all my visuals, KPI's, Tables, charts should take values from PC calculated measures present in the data pane.
So, how do I achieve this requirement in Power BI without much much complexity.
Appreciate an quick response.
Solved! Go to Solution.
Hey @ANVS ,
You could set up calculation groups with two calculation items for PC and UC. Then, the calculation items you could switch between measure names as follows:
Basically whenever it finds a measure named Revenue it swaps it with UC_Revenue when you have UC selected. And similar for PC.
Hope it helps!
- ✅ Create a disconnected table with values PC and UC
- ✅ Add a slicer using that table
- ✅ Write a dynamic measure like this:
Dynamic_Measure =
SWITCH(
SELECTEDVALUE(MeasureSelector[Type]),
"PC", [PC_Measure],
"UC", [UC_Measure]
)
Use Dynamic_Measure in all visuals instead of separate PC/UC measures. Clean, scalable, and no duplication needed.
If the response was helpful and resolved your issue, kindly consider marking it as the Accepted Solution. This makes it easier for other community members to discover useful answers and benefits everyone facing similar challenges.
Thank you
Hi @ANVS ,
Could you let us know if your issue has been resolved or if you are still experiencing difficulties? Your feedback is valuable to the community and can help others facing similar problems.
Yes, Resolved
Thank you for confirming, @ANVS . If you can, please mark the response that resolved your issue. This will help others in the community find solutions more easily.
Regards,
Yugandhar.
- ✅ Create a disconnected table with values PC and UC
- ✅ Add a slicer using that table
- ✅ Write a dynamic measure like this:
Dynamic_Measure =
SWITCH(
SELECTEDVALUE(MeasureSelector[Type]),
"PC", [PC_Measure],
"UC", [UC_Measure]
)
Use Dynamic_Measure in all visuals instead of separate PC/UC measures. Clean, scalable, and no duplication needed.
Thanks for this @Shahid12523 .
Have a query here again:
Dont we need to create seperate dynamic measures for each measure in UC and PC calculations?
or only the Single measure which you have given works?
If you want to avoid having to create and manage 50,60 dynamic measures, the calculation group approach mentioned earlier is recommended. Calculation groups allow you to use generic measures in your visuals, and the group will automatically switch between PC and UC versions, making the solution more scalable.
regards,
Yugandhar.
Hey @ANVS ,
You could set up calculation groups with two calculation items for PC and UC. Then, the calculation items you could switch between measure names as follows:
Basically whenever it finds a measure named Revenue it swaps it with UC_Revenue when you have UC selected. And similar for PC.
Hope it helps!
You might want to look into the usage of PowerBI bookmarks to create buttons to easily switch between the two options:
An example video:
https://www.youtube.com/watch?v=_HTF7Ph7Eqc
Information:
https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-bookmarks