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.
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?
Solved! Go to Solution.
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
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.
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?
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
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |