cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
m4xon
Helper I
Helper I

Is it possible to refer to a shape to change its colour based on slicer

Hello,

 

Is it possible to refer to a shape to change its colour based on slicer selection.

I have 9 shapes on the page and I would like to change its colour, currently I have 9 measures like: "

IF ( SELECTEDVALUE ( Dataset[ID] ) = "20000", "#FBF1ED", "#FFFFFF" ) ", but I was wondering if its possible to do with only one measure with SWITCH or somerthing. 
 
Thank you in advance,
Max
2 REPLIES 2
m4xon
Helper I
Helper I

Yes, I know it and use it with connection of the DAX code I provided, but for each shape I need to create another measure ( Dataset[ID] ) = "20000" ). I was wondering if its possible to create only one measure, kind of SWITCH.

amitchandak
Super User
Super User

@m4xon , In fill option you have Fx, option. Click on that -> use field value option and then use measure

 

amitchandak_0-1684504322106.png

 

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors