Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi,
Does anyonw knows how to add conditional formating to bar chart? There are no options on the Format-> Colour or at the collum like on tables.
Thanks!
Soraia
In the Visualizations - Bar - Color select fx button to define a function for conditional formatting.
Hi, I'll give it try! Thank you.
Hi @SoraiaT ,
Apologies for the necro, but I was trying to solve the same problem and came across this thread.
I solved this by moving the chart dimension from Legend into Axis. It appears that you can't conditionally format (nor sort sometimes) charts that use a legend.
I've attached examples of the difference in visual display just by moving the dimension. The chart using Axis is conditionally formatted based on rules.
Hope this helps you and/or anyone else that may stumble across this thread looking for answers.
Pete
Proud to be a Datanaut!
@SoraiaT,
Under Format ->Data colors of the bar chart , you can see "Advanced controls", open it and you will see conditional formatting windows.
Reference:
https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-november-2018-feature-summary/
Regards,
Lydia
My question is that this won't work on a stacked bar chart.
Your solution only works for single values in the column fields. How to format the colors individually on these?
Hi @v-yuezhe-msft Lidia,
I have the latest verson. Download again and that option keeps not showing:
Do you have any idea why?
Thanks again 🙂
Exactly, Even I have the same question
Hi @AnshulG ,
This is a very old thread and the capabilities of Power BI have moved on dramatically since this was posted.
If you're having trouble getting PBI to conditionally format how you want it to, I would strongly recommend you open a new topic in the Desktop forum and someone there will be able to help you very quickly.
Pete
Proud to be a Datanaut!
@SoraiaT,
When you directly drag two fields to Values section of the column chart, please manually change color for each field.
If you drag field to Axis and Values to column chart as below, you will have the advanced control option.
Regards,
Lydia
@SoraiaT,
As my previous post, if you drag two columns, it is only possible to manually set the colors for each column. If you want to set colors for each column based on the condition as you describe, you can use table visual and configure conditional formatting.
Regards,
Lydia
@SoraiaT,
In your second chart, please click Advanced controls to configure conditional formatting as below.
Regards,
Lydia
When you put all the values into chart which like the first chart, it is not possible to use Advanced controls option, you would need to manually set color for them.
Regards,
Lydia
Hi Soraia,
Refer the following link, if that is not your requirement please elaborate your requirement.
https://community.powerbi.com/t5/Desktop/Conditional-Formatting-of-Bar-Chart/td-p/118370
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
82 | |
42 | |
40 | |
35 |