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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. 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

 

3 REPLIES 3
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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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