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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
quintama
Frequent Visitor

Using Slicers to Choose Which Measure to Display

Hi All,

I am trying to custom a graph so that the user can select what measures he can see in the graph. I was able to do this by creating a Switch measure: 

 

Selected Measure = SWITCH(FIRSTNONBLANK(Options[Tipo],Options[Tipo]),"CBB",SUM(Custos[CBB]),"Receita",SUM(Custos[Receita]),"Custo",SUM(Custos[CustosNeg]))

 

However I would like that the user be able to select multiple options (not only switch) 

 

Example below: 

 Capture1.PNGCapture2.PNG

 

 

Any ideas?

 

 

Thanks!

1 ACCEPTED SOLUTION
Sean
Community Champion
Community Champion

2 REPLIES 2
Sean
Community Champion
Community Champion

Take a look here... I believe this is what you want

http://community.powerbi.com/t5/Video-Tips-and-Tricks/Turn-Measures-On-and-Off-Inside-a-Chart-with-C...

Hope this helps! Smiley Happy

quintama
Frequent Visitor

Thanks!! This worked perfectly well 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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