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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ompowerbi
Helper I
Helper I

Conditional formatting of a table by colour for whole row

Hi, I know how to conditional format a column, but how can one apply the background conditional formatting to one whole row. For instance, I would have this table:

CountrySalesCity
UK105London
France92Paris
UK84Manchester

I would want to make the UK rows blue and the French rows green for instance, almost conditional formating based upon values in the Country column, but I don't want to have to go into each column and do this, how can I do this immediately for a whole row? Thanks. 

1 ACCEPTED SOLUTION
PabloDeheza
Solution Sage
Solution Sage

Hi there!

It is still not possible to apply conditional formatting to row, therefore you have to apply it to each column of the table. It might help you speed up the process creating a measure like this (color can also be a Hex Code):

Country Matrix Conditional Formatting = 
SWITCH(
    SELECTEDVALUE( YourTable[Country] ),
    "France", "Green",
    "UK", "Blue",
    BLANK()
)

 You can vote for the feature on going to this link:

https://ideas.powerbi.com/ideas/idea/?ideaid=229a6a2b-f26c-4afd-b1af-8cf3cbc9810f

 

Let me know if that helps!

View solution in original post

1 REPLY 1
PabloDeheza
Solution Sage
Solution Sage

Hi there!

It is still not possible to apply conditional formatting to row, therefore you have to apply it to each column of the table. It might help you speed up the process creating a measure like this (color can also be a Hex Code):

Country Matrix Conditional Formatting = 
SWITCH(
    SELECTEDVALUE( YourTable[Country] ),
    "France", "Green",
    "UK", "Blue",
    BLANK()
)

 You can vote for the feature on going to this link:

https://ideas.powerbi.com/ideas/idea/?ideaid=229a6a2b-f26c-4afd-b1af-8cf3cbc9810f

 

Let me know if that helps!

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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