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
Is there a way to format table rows so that say if the row had "Closed" in the "Office Status" column, the row is "Red", but if the Office Status" is "Open", then then the row is green?
Solved! Go to Solution.
Office_Status_Custom_Column = IF(Sheet1[Office Status] = "Closed", 0, IF(Sheet1[Office Status] = "Open", 1, 2))
Create a custom column to mark the open status as 1 and closed as 0.
Then apply conditional formatting based on rules to set the background color for each of the cols based on the value in the new column
Thanks, not overly familiar with custom columns, so struggling with the code.
Guess it would be something like
Office_Status_Custom_Column = IF(Sheet1[Office Status] = "Closed"), "0"), IF(Sheet1[Office Status] = "Open"), "1"), IF(Sheet1[Office Status] = "Other"), "2")
But cant figure it out, any guidence would be great.
Office_Status_Custom_Column = IF(Sheet1[Office Status] = "Closed", 0, IF(Sheet1[Office Status] = "Open", 1, 2))
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 |
|---|---|
| 37 | |
| 32 | |
| 26 | |
| 24 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 50 | |
| 31 | |
| 25 | |
| 24 |