Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mbelobaba
Frequent Visitor

Matrix-conditional formatting

Hi Community, 

 

I'm using matrix and want to apply conditional formatting on values of a row field. Can this be accomplished?

 

Thanks, 
Maja

3 REPLIES 3
amitchandak
Super User
Super User

@mbelobaba , You can not have it row. You have repeat it on all columns.

 

You have to do background color, font color, icon etc.

 

Scale, rule, and measures based(Field value).

 

You can create  measure and use that on all values

 

example

color =
switch ( true(),
FIRSTNONBLANK('Table'[commodity],"NA") ="commodity1" && sum('Table'[Value]) >500,"lightgreen",
FIRSTNONBLANK('Table'[commodity],"NA") ="commodity2" && sum('Table'[Value]) >1000,"lightgreen",
// Add more conditions
"red"
)

 

refer

Color Field - Color Measure - Conditional formatting
https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values
https://exceleratorbi.com.au/conditional-formatting-using-icons-in-power-bi/
https://community.powerbi.com/t5/Desktop/FORMAT-icon-set-for-use-in-a-data-card/td-p/811692

https://exceleratorbi.com.au/dax-unichar-function-power-bi/

https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting

Hi @amitchandak, thanks for helping!

It's not an acceptable solution to repeat the values on all columns. They need to stay in rows.

Hi @mbelobaba ,

Currently Power BI don't support conditional formatting for entire row, you can try the method in this thread. Besides that, here is one similar topic shared on Power BI Ideas , you can vote it up and add your comments there to improve Power BI on this feature.

Best Regards

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.