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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Silverfam
Frequent Visitor

Switch returning multiple values

Situation: I want the user to choose a product from a slicer and depending on that product I want multiple values to be visible in a graph.
If another prodcuct gets chosen, I want other measures to be visible. 


I build 2 switch measures and these work OK, but it's not really what I need. 
for example. If Product A gets chosen - measures 1, 2 and 3 should be visible in the graph.
I added an extra slicer so the user could in an extra step filter out Measure 1, 2, 3 if  thats needed.
But by default all measures should be visible in the graph.

The problem is, I managed to add 1 measure to the graph but not all 3. 
How can I solve this problem? 


Main Switch measure: 

Switch Test Product =
SWITCH(TRUE(),
    HASONEVALUE(Products[Product]),
        SWITCH(SELECTEDVALUE(Products[Product]),
        "Hub", [Switch test CF],
        "Marketplace", [Switch test MP]
)
)
 
One of the Sub Switch measures
Switch test Marketplace =
        SWITCH(
    SELECTEDVALUE('Evolution Metrics'[Evolution Metric]),
        "New ARR", [New ARR MP CC],
        "Deal driven Upsell" , [Deal Driven Upsell MP CC],
        "Organic Upsell", [Organic Upsell MP CC],
        "Downsell", [Downsell MP CC],
        "Churn", [Churn MP CC])
        
4 REPLIES 4
v-eachen-msft
Community Support
Community Support

Hi @Silverfam ,

 

Could you please share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to OneDrive and share the link here.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

HI @v-eachen-msft ,

I just need to figure out how to visualize multiple measures based on one single select from a slicer. 
If the user selects Slicer option A, I want to visualize measure 1 and 2 and 3. If the user selects slicer option B, I want to visualize measure 4 and 5 and 6. 
I though switch was the right way to go, but maybe there is anonther, better way to do this? 

Hi @Silverfam ,

 

According to your situation, I recommend you use bookmark to achieve your needs.

Here is the document for your reference.
https://docs.microsoft.com/en-us/power-bi/desktop-bookmarks

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Not possible to share sample data, it's confidential. 
But I can elaborate more if that would help you. 


What extra info would you need? 

Thx in advance

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors