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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
saadghojaria
Frequent Visitor

Conditional formatting for bar chart percentage data

 

I have data in percentage format and I want to create conditional formatting in such a way 

100-95 : Green

<96 - >=80 = Yellow

<80 = Red

I have kept formatting in point format 95% = 0.95 but still not able to get red charts for my data. 

Edit : its not columns its a measure

saadghojaria_0-1721761944134.png

Bar chart representation : 

saadghojaria_0-1721761740107.png

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

Hi @saadghojaria ,

 

According to your description, [total_in_time_dev_val] is a measure for which you want to create a conditional format, right?

Then we can create a color measure.

Color = SWITCH(TRUE(),
[total_in_time_dev_val]<=1 && [total_in_time_dev_val]>=0.96,"green",
[total_in_time_dev_val]<0.96 && [total_in_time_dev_val]>=0.8,"yellow",
[total_in_time_dev_val]<0.8,"red")

Setting the Conditional Format.

vtangjiemsft_0-1721803978823.png

Then the result is as follows.

vtangjiemsft_1-1721804055659.png

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

View solution in original post

6 REPLIES 6
v-tangjie-msft
Community Support
Community Support

Hi @saadghojaria ,

 

According to your description, [total_in_time_dev_val] is a measure for which you want to create a conditional format, right?

Then we can create a color measure.

Color = SWITCH(TRUE(),
[total_in_time_dev_val]<=1 && [total_in_time_dev_val]>=0.96,"green",
[total_in_time_dev_val]<0.96 && [total_in_time_dev_val]>=0.8,"yellow",
[total_in_time_dev_val]<0.8,"red")

Setting the Conditional Format.

vtangjiemsft_0-1721803978823.png

Then the result is as follows.

vtangjiemsft_1-1721804055659.png

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

This solution worked for me !! Thankyou so much !! 

Kaviraj11
Super User
Super User

Should the summarization be selected as sum? Can you try it




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

Proud to be a Super User!





Tried that as well doesn't really makes a difference.

 

saadghojaria_0-1721764388918.png

 

Kaviraj11
Super User
Super User

Hi,

 

There should be an option to select 'Percentage' as a Unit instead of Number. Please adjust the value accordingly and try with that. 

 

Kaviraj11_0-1721763027576.png

 

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




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

Proud to be a Super User!





Actually I tried that but apparently what I found out that percentage is different.  
See this post : Solved: Conditional Formatting Not Giving Expected Result ... - Microsoft Fabric Community

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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