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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors