This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi,
I set up a measure to apply conditional formatting to a table visual according to the measure's value
The issue is that no matter what value the measure has the background is always red. Tried also with 0 and 1 for measure values but same result
Any help pls?
Thanks
Hi @marvicf ,
I created some data:
Here are the steps you can follow:
1. Create measure.
ZoneSelectedWeek =
IF(
HASONEVALUE('TWeekly_Extract'[WeekNo]),1,2)color =
IF(
[ZoneSelectedWeek]=1,"grey","red")
2. Format – Background – fx.
3. Go to the Color – Effects interface – [color].
4. Result:
Displayed in Gray when selected:
Displayed in red when not selected:
If you need pbix, please click here.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Anonymous ,
Thanks for your reply.
This works for a card visual but can't get it to work for the background of a table visual column. Column background is set to grey and remains grey whether selected or not
Thanks and regards
Hi and thanks for your reply
Tried the measure you suggested but still no luck. The measure is working fine as I assigned it to a card visual to see its value and when I select the week it's value changes. The issue is that in the table visual the column background is always the color for value 2 and won't change after that
Thanks
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 25 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 60 | |
| 48 | |
| 29 | |
| 23 | |
| 23 |