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
Sbezkoro
Regular Visitor

Matrix table conditional formatting by Row (not value)

Can I format Row background colors in Matrix table?

I need matrix table visuals like in the below example, where Product and Country are in ROW and Months in Column.
Sales in VALUES.

Capture.PNG

I have no problem to use conditional formatting for Sales, but I cannot make country column formatted accordingly as its value sits in Row of matrix table, but value.

 

Is it possible at all to do in PBI?

Thanks in advance!

1 ACCEPTED SOLUTION
v-xiaoyan-msft
Community Support
Community Support

Hi @Sbezkoro ,

 

To my knowledge , It is not possible to perform row conditional formatting currently. You could register an idea for it or vote for the idea.

Unfortunately, you can only apply conditional formatting to values, totals, or both. It is also not possible to use color based on a calculation, you may apply the colors for the selected column, and base the formatting on the Field value of the column.

 

For more information, you can refer to:Use conditional formatting in Power BI 

 

Please see if the similar thread helps:Conditional format Row Text Matrix Table 

 

 

Hope it helps,


Community Support Team _ Caitlyn

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

3 REPLIES 3
v-xiaoyan-msft
Community Support
Community Support

Hi @Sbezkoro ,

 

To my knowledge , It is not possible to perform row conditional formatting currently. You could register an idea for it or vote for the idea.

Unfortunately, you can only apply conditional formatting to values, totals, or both. It is also not possible to use color based on a calculation, you may apply the colors for the selected column, and base the formatting on the Field value of the column.

 

For more information, you can refer to:Use conditional formatting in Power BI 

 

Please see if the similar thread helps:Conditional format Row Text Matrix Table 

 

 

Hope it helps,


Community Support Team _ Caitlyn

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

 

amitchandak
Super User
Super User

@Sbezkoro , You can create a color measure and use that. But you can use that only for values column not for rows/columns 

 

If(max(Table[Country]) = "PL", "Grey", "White")

 

How to do conditional formatting by measure and apply it on pie?: https://youtu.be/RqBb5eBf_I4

No, this is the thing, that there is not issue how to format Value fields, but columns or rows.

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.

Top Solution Authors