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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
HamidBee
Power Participant
Power Participant

Conditional Formatting Data Colours for more than one field in a bar chart not working

When creating a bar chart with two or more fields I noticed that the conditional formatting option dissapears. I really wanted to write a rule that say that if the total is >10 then "green" and if it is <10 then "red". I understand that because there are five measures involved I would need to write five different measures for the colours. Is there any way around this?.

 

Thanks in advance.

 

Data Colours.png

1 ACCEPTED SOLUTION
negi007
Community Champion
Community Champion

@HamidBee since you have seperate column for each field, you wont be able to have conditional formating. In this case, i suggest you to unpivot your data in the power query window so that you have one column for cat and second column for value. once you do this, then you will get option to have conditional formatting

 

this is how you can unpivot your data

negi007_1-1640257894718.png

 

then you can have conditional formatting option enabled.

 

negi007_2-1640258053643.png

and this is how you set the conditional formatting

negi007_3-1640258084625.png

 

 

 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

View solution in original post

5 REPLIES 5
negi007
Community Champion
Community Champion

@HamidBee since you have seperate column for each field, you wont be able to have conditional formating. In this case, i suggest you to unpivot your data in the power query window so that you have one column for cat and second column for value. once you do this, then you will get option to have conditional formatting

 

this is how you can unpivot your data

negi007_1-1640257894718.png

 

then you can have conditional formatting option enabled.

 

negi007_2-1640258053643.png

and this is how you set the conditional formatting

negi007_3-1640258084625.png

 

 

 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Yes, that did the trick. Thanks

Pragati11
Super User
Super User

Hi @HamidBee ,

 

Yes currently we don't have that option of using custom measure under Data Colors section for Bar Chart.

You can post an idea here: https://ideas.powerbi.com/ideas/

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

amitchandak
Super User
Super User

@HamidBee , with more than one measure or legend conditional formatting is not supported.

 

But you can make the legend column a second axis column, (expand-  concatenate label off, sort on-axis) and use conditional formatting with one measure

 

If that is possible, refer power bi part in this video

Tableau Vs Power BI- Chapter 4- Bar/Clustered Bar: https://youtu.be/2P5BBRN853c

 

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

 

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

Thank you, I'll have a watch through the videos. 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors