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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
sunil222
Helper II
Helper II

formatting the percentages column

I need formatting the percentages column as below

Sales   column

25.89

9.75

Please help me on this 

Requires color code for BU performance:

Meeting target - Green
within 10% - Amber
outside10% - Red

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @sunil222 ,

 

The easiest way to achieve your needs is to use conditional formatting.

 

I have created a sample dataset, please follow my steps.

 

First, here is the original data set.

vhuijieymsft_0-1706772665145.png

 

Second, I assume the target is 30%. Click Conditional Formatting in the drop-down box and select a font color.

vhuijieymsft_1-1706772674899.png

 

Select Rule for Format Rule, and select Percent instead of Number for data type.

vhuijieymsft_2-1706772685124.png

 

If 30% of the target is reached, set the color to green, if within 10% set the color to amber, if outside 10% and the target is not reached, set the color to red.

vhuijieymsft_3-1706772692990.png

 

Once set up, this is what the visual will look like.

vhuijieymsft_4-1706772702070.png

 

PBIX attached.

 

If you still do not understand anything please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @sunil222 ,

 

The easiest way to achieve your needs is to use conditional formatting.

 

I have created a sample dataset, please follow my steps.

 

First, here is the original data set.

vhuijieymsft_0-1706772665145.png

 

Second, I assume the target is 30%. Click Conditional Formatting in the drop-down box and select a font color.

vhuijieymsft_1-1706772674899.png

 

Select Rule for Format Rule, and select Percent instead of Number for data type.

vhuijieymsft_2-1706772685124.png

 

If 30% of the target is reached, set the color to green, if within 10% set the color to amber, if outside 10% and the target is not reached, set the color to red.

vhuijieymsft_3-1706772692990.png

 

Once set up, this is what the visual will look like.

vhuijieymsft_4-1706772702070.png

 

PBIX attached.

 

If you still do not understand anything please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Kishore_KVN
Super User
Super User

Hello @sunil222 ,

 

If my understanding is right, then you are looking to have Red, Amber, Green on the basis of Column.

If I am right then create new column or measure depends on your requirement. Logic for Column is

Color Code = If(Column<=10,"Green",If(Column>10 && Column<20,"Amber","Red"))

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

Arul
Super User
Super User

@sunil222 ,

 

Could you clearly explain your data format and the expected output?





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

Proud to be a Super User!


LinkedIn


Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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