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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
atul9063
Helper III
Helper III

Conditional formatting on Rows

Hi ,

 

I want below color formating on rows .I want either font or background color according to status value.I m not able to achieve this any help please.

 

image.png

 

 

 

 

 

 

 

Thanks

 

1 ACCEPTED SOLUTION

@TomMartens Thanks for replying

 

I have used below approach.

 

I have created Color Table with Color Id and Color Name Columns

image.pngimage.pngimage.png

View solution in original post

9 REPLIES 9
TomMartens
Super User
Super User

Hey,

 

this is my table

image.png

 

using conditional formatting on column this ...

image.png

 

... like so ...

image.png

 

... creates this output (i already did the same for the column that) ...

image.png

 

Important: you have to use a Power BI Desktop version that supports Conditional Formatting by "Field value", this feature has been introduced in Power BI Desktop with the August 2018 release, as I'm using the October release - it's there. You may have to consider to upgrade your current Power BI Desktop version if your version does not this option.

This blog post by Chris Webb lists the supported color names: https://blog.crossjoin.co.uk/2018/08/10/colour-names-supported-in-power-bi-conditional-formatting/

 

Please be aware, that there is a little glitch (but does not have any effect on functionality) within the dialog of the Conditional Formatting, but this will be fixed soon. Whenever you make the setting for the Conditional Formatting the dialog will look similar to this:

image.png

 

Hopefully this is what you are looking for!

 

Regards,

Tom

 

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

@TomMartens Thanks for replying

 

I have used below approach.

 

I have created Color Table with Color Id and Color Name Columns

image.pngimage.pngimage.png

I found that cross filter direction needs to be 'both' in the relationship if using the original Color ID in visuals.

Anonymous
Not applicable

I belive we have to do this for each column in table. 

 

Is there anyway to do the Conditional Background Color for whole row and not individual column? 

Anonymous
Not applicable

This solution doesn't work.... Or there's some step missing....

Anonymous
Not applicable

this solution doesn't work 

Hi @atul9063

 

Glad to hear you've solved it, please accept your solution, that way, other community members will easily find the solution when they get same issue.

 

Regards,

Cherie

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

Currently there is no cappibility for custom formatting text, but you could create a custom column which inserts a number for each color. Then you can create a custom formatting rule using your custom column.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.