Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |