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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.