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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
manju_yadav
Regular Visitor

Conditional Formatting on Bar chart

I want to colour code my bar chart based on %value on my measure like if % <50 then Red when % between 50-90 then yellow and above 90 green. Used conditional formating option on Data colour Card. working Ok when i am selecting whole data but when i am filtering one Graph then this colour coding on graph is mashing up. Do we have any solution for this?

1 ACCEPTED SOLUTION

Thanks for reaching out,

 

yes this been resolved, I used number instead of % for my conditioning formating and it worked, but I wonder why I was not able to do this with % ,when my measure was like numerator/Denominator  and formated this as %.

View solution in original post

5 REPLIES 5
v-lid-msft
Community Support
Community Support

Hi @manju_yadav ,


Does this issue have been resolved?Could you please provide more details about it If it still not be resolved, Such as the screenshot of condition format and the formula of measure you used? Please don't contain any Confidential Information or Real data in your reply.

 


Best regards,

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

Thanks for reaching out,

 

yes this been resolved, I used number instead of % for my conditioning formating and it worked, but I wonder why I was not able to do this with % ,when my measure was like numerator/Denominator  and formated this as %.

Hi @manju_yadav ,

 

Because when using percent  in rules of conditional format, it means percent of biggest value, such as in  second screenshot, when using number, the 90% means 90%, but when using percent as rules, it means 90%/1500%=6%, and 90%/90%=100% in first screenshot.

 

3.jpg4.jpg

 


By the way, PBIX file as attached.


Best regards,

 

Community Support Team _ Dong Li
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

Did not get it can you elaborate.

In between refer

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

 

You can create a color measure like this and use after using fields in advance control

Color sales = if(AVERAGE(Sales[Sales Amount])<170,"green","red")

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

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
Greg_Deckler
Community Champion
Community Champion

Can you post an image of your rules?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.