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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
m4xon
Helper III
Helper III

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 III
Helper III

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.