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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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