cancel
Showing results for 
Search instead for 
Did you mean: 
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
May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.

Top Solution Authors