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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
matt_s
Frequent Visitor

Fetch value from slicer

I would like to use the value from a slicer dropdown and use it for conditional formatting. Let's say a user has selected 100 in the dropdown. Then all values in a certain column should be green if they are above 100. The slicer is connected to a simple table with no connections in the model, just a range of numbers really.

 

Is this possible?

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi matt_s

You could try below measure

 IF(SELECTEDVALUE(slicer[v])<=SELECTEDVALUE('Table'[amount]),"#2AC9C9","#C6CC1F")

Then use this measure to define conditional format like below

240.PNG

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
matt_s
Frequent Visitor

One step further, I have managed to get this into a measure and to return either 0 or 1. But the measure is not available to choose as a field in the conditional formatting rules?

 

NewMeasure = IF(SELECTEDVALUE(Slicer) < Table[Field]);"1";"0")
dax
Community Support
Community Support

Hi matt_s

You could try below measure

 IF(SELECTEDVALUE(slicer[v])<=SELECTEDVALUE('Table'[amount]),"#2AC9C9","#C6CC1F")

Then use this measure to define conditional format like below

240.PNG

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors