Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Kinsley
Frequent Visitor

Matrix: How to display more than one mesures when a condition is met using Switch

I want to dynamically show measure based on condition.

I created a table "Measure Selection" with one column containing names of measures.

Kinsley_0-1679923573574.png

 

When I select "Demand Change", the matrix will show only the measure named "Demand Change". But when I choose signal level, I want the matrix to show two measures: "Signal Level" and "Gap".  I dont know how to get around with this. The measure selection I created works only for one measure per condition. When I filter on "Signal Level", only the measure "Signal Level" is shown, the "Gap" is not shown.

 

Display measure =
    SWITCH(
            SELECTEDVALUE('Measure Selection'[Signal Type]),
            "Signal Level", [Signal Level],
            "Signal Level", [Gap],            
            "Demand Change", [Demand Change]
            )

 

 

1 REPLY 1
amitchandak
Super User
Super User

@Kinsley , Check if field parameters can help

Power BI Field Parameters — A Quick way for Dynamic Visuals: https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9af...
Power BI Field Parameters- Measure Slicer and Axis/Dimension slicer: https://youtu.be/lqF3Wa1FllE
Switch TOPN with Field Parameters: https://amitchandak.medium.com/switch-topn-with-field-parameters-299a0ae3725f

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.