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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.