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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello Power BI Community,
I would like to use Switch True DAX to select metric to show the necessary data depending on the needs.
For instance, if a user selects "Sales", the dashboard will show the sales data
and if the user selects "Costs", the dashboard will show the cost data.
Please refer to below YouTube video and this is exactly what I would like to do.
I understand how to set up Switch True DAX from this video, but what I do not understand is
how this guy set up [metrics selected] measure.
Can anyone guess how to set up this measure?
Thanks,
H
Solved! Go to Solution.
Create a table as below with values as Sales, Costs, etc and use them as a slicer.
Sales
Costs
In your switch measure, use a variable to get the selected value and use in place of "Metric Selected"
Var selected_value = SELECTEDVALUE(COLUMN) //Slicer column)
If it helps mark it as a solution
Kudos are nice too
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!