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
deonaman
Frequent Visitor

Column Data Color Formatting not working Power BI

I have added a conditional colour formatting. however, it doesn't seem to be working. The rule is if the percentage is less than 40% column colour should be red otherwise green. The column data is a measure

 

 

Screenshot1.jpg

Anything below the Target line should be red as per the rule below. Any reason why conditional formatting is not working properly

Screenshot2.jpg

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @deonaman ,

 

Thank you for your interest in this case. The method provided is basically correct, I just performed a test and a more detailed description.

 

I ran the test, this is my example data, %Actual is a measure.

vhuijieymsft_0-1739950945676.png

 

Be sure to set the data type (Actual %) of the measure to a percentage. Sometimes the base format may still be a number even though the data is displayed as a percentage.

vhuijieymsft_1-1739950945677.png

 

Under the Format pane, select “column”>>f(x) to set the conditional format. When setting the condition format, use the “Number” format instead of the “Percent” format after checking your measure.

vhuijieymsft_2-1739950980373.png

 

This is the original visual object:

vhuijieymsft_3-1739950980375.png

 

This is the visual object after applying conditional formatting:

vhuijieymsft_4-1739950996015.png

 

If it hasn't been resolved, please provide a Power BI Desktop file in progress (with sensitive information removed) that fully covers your issue or question in a usable format (not a screenshot). You can upload the PBIX file to a cloud storage service such as OneDrive, Google Drive (set up public access), SharePoint, or a Github repository, and then share the URL of the file.

 

The pbix file is attached.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @deonaman ,

 

Thank you for your interest in this case. The method provided is basically correct, I just performed a test and a more detailed description.

 

I ran the test, this is my example data, %Actual is a measure.

vhuijieymsft_0-1739950945676.png

 

Be sure to set the data type (Actual %) of the measure to a percentage. Sometimes the base format may still be a number even though the data is displayed as a percentage.

vhuijieymsft_1-1739950945677.png

 

Under the Format pane, select “column”>>f(x) to set the conditional format. When setting the condition format, use the “Number” format instead of the “Percent” format after checking your measure.

vhuijieymsft_2-1739950980373.png

 

This is the original visual object:

vhuijieymsft_3-1739950980375.png

 

This is the visual object after applying conditional formatting:

vhuijieymsft_4-1739950996015.png

 

If it hasn't been resolved, please provide a Power BI Desktop file in progress (with sensitive information removed) that fully covers your issue or question in a usable format (not a screenshot). You can upload the PBIX file to a cloud storage service such as OneDrive, Google Drive (set up public access), SharePoint, or a Github repository, and then share the URL of the file.

 

The pbix file is attached.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

freginier
Super User
Super User

Hey there!

 

I feel like your conditions aren't working because of the yellow, is the yellow neccessary? 

Power BI applies the rules in order, so maybe it is messing with the red rule and not sure which rule to apply. 

 

Try doing: 

Green → If value > 40% AND <= 100%
Red → If value < 40% 

Maybe this will help!

 

Hope this helps,

Zoe 😁😁

Screenshot 3.jpg

Done, result is still the same

Screenshot1.jpg

shafiz_p
Super User
Super User

Hi @deonaman  Try this way:

shafiz_p_0-1739873016108.png

 

 

Hope this helps!!

If this solved your problem, please accept it as a solution and a kudos!!

 

Best Regards,
Shahariar Hafiz

amitchandak
Super User
Super User

@deonaman , if the number/measure is marked % then you need use Number(not the Percent) and values between 0 and 1 

amitchandak_0-1739873389578.png

 

 

refer - https://youtube.com/shorts/UaQX0yOeAWE

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

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.