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 have table viz and sample is like below. All products are categories into 3 and they are A, B and C. I have to formate font or bacground color of rows for Category A.
Is it possiable in Power BI to formate some rows based on column Category data ?
| ID | Name | Category |
| 1 | Sofa | B |
| 2 | Chair | A |
| 3 | Glass Table | C |
| 4 | Table Top | C |
| 5 | Writing Desk | B |
Thanks in advance!
Solved! Go to Solution.
Hi @Hari01,
Please try following DAX to create a new measure:
Measure = IF(MAX('Sheet1'[Category]) = "A","yellow")
Right click and select "Conditional formatting":
Select "Field value" - "Measure" (just created):
Result you want:
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Hari01,
Please try following DAX to create a new measure:
Measure = IF(MAX('Sheet1'[Category]) = "A","yellow")
Right click and select "Conditional formatting":
Select "Field value" - "Measure" (just created):
Result you want:
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
It can be done by adding a measure, which is explained in the link: https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting
Section: Color-code based on text
Hope this helps!
Check out the April 2026 Power BI update to learn about new features.
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 | |
| 37 | |
| 31 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 66 | |
| 56 | |
| 31 | |
| 26 | |
| 23 |