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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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