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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
m4xon
Helper II
Helper II

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
1 ACCEPTED SOLUTION
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

 

View solution in original post

2 REPLIES 2
m4xon
Helper II
Helper II

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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