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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
mo_nasser1
Frequent Visitor

Switch Visualisation using dropdown list

Hello guys, thanks in advance

I want to switch visualization by drop-down list, i made it by buttons and bookmarks but businesses need it as a dropdown list 

1.PNG2.PNG

 

4 REPLIES 4
ramdas_01
Regular Visitor
Syndicate_Admin
Administrator
Administrator

Nice day.

To do this you must a new table that contains the indicators to select in the drop-down combo and make a nested switch measurement with Selectedvalue to return that value, I leave you an example, I hope it helps you.

FrancoQuiroga_0-1663274024452.png

Test =

Where Sales =
SUM(Tabla[Sales])

Where Price =
SUM(Tabla[Price])

Return

SWITCH(
TRUE(),
SELECTEDVALUE(Selected[Indicator],Sales) = "Price", Sales,
SELECTEDVALUE(Selected[Indicator],Sales) = "Sales", Sales)


Best regards.

Thanks for this solution, can u please send to me the power bi file 

and if I want to make this with two different charts such as a line chart and a bar chart, is can do it with this method?

Good day dear,

Disulpate the response time, I share a link with an example, I hope it is useful.

https://drive.google.com/file/d/1WK7rVPlXan2EiB7FxDYf6Gz73wixFlud/view?usp=sharing

Best regards.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.