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

How to conditional formatting a bar chart on x Axis

Dear community,

i try to create a bar chart with a conditional formatting. I wannt all bars which are below 0,8 to be red and all which are above 1.4 to be red as well. In a future state i want to have an additional yellow area between.

The normal colour satuation setting only allows me to colour the bars base on the hight ( in this picture based on the yaxis). Unbenannt.JPGUnbenannt1.JPG

On the internet i only found a video which explains it very well but he did a measure in advance . i just want to have the bare data to be formatted.

Can you help me ? Best regards Stefan

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @Hydro,

 

Based on my test, we can add a new column to meet your requirement.

 

Column = IF(Table1[bar]>1.4,"C",IF(Table1[bar]<0.8,"C","D"))

 

Then we can create the bar chart as the picture below.

1.png

For more details, please check the pbix as attached.

 

https://www.dropbox.com/s/sqlr7jhr2whe0q6/How%20to%20conditional%20formatting%20a%20bar%20chart%20on...

 

Regards,

Frank

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

3 REPLIES 3
v-frfei-msft
Community Support
Community Support

Hi @Hydro,

 

Based on my test, we can add a new column to meet your requirement.

 

Column = IF(Table1[bar]>1.4,"C",IF(Table1[bar]<0.8,"C","D"))

 

Then we can create the bar chart as the picture below.

1.png

For more details, please check the pbix as attached.

 

https://www.dropbox.com/s/sqlr7jhr2whe0q6/How%20to%20conditional%20formatting%20a%20bar%20chart%20on...

 

Regards,

Frank

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi,

Thanks, thas was easy 🙂

Hi @Hydro,

 

Does that make sense? If so , kindly mark the answer as a solution to close the case, thanks in advance.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
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.

June 2025 community update carousel

Fabric Community Update - June 2025

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