This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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!
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 |
|---|---|
| 33 | |
| 26 | |
| 21 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 44 | |
| 28 | |
| 24 | |
| 22 |