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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
sunil222
Helper II
Helper II

conditional formating for percentages column

conditional formating for percentages column in report

0 to 10 % amber color

10 to 100% Red color

<0% Green color

 

how to achieve this to get this format , please guide me i tried iam unable to get it

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

Hi @sunil222 

You can try to create a measure to set the color then put it to conditional formatting.

e.g Sample data 

vxinruzhumsft_0-1709256662567.png

Create a measure 

Measure = SWITCH(TRUE(),SUM('Table'[value])>0&&SUM('Table'[value])<=0.1,"#c36625",SUM('Table'[value])>0.1&&SUM('Table'[value])<=1,"red",SUM('Table'[value])<0,"green")

Then put it to the conditional formatting of the value column.

vxinruzhumsft_1-1709256730921.png

 

vxinruzhumsft_2-1709256738343.png

 

Output

vxinruzhumsft_3-1709256747730.png

Best Regards!

Yolo Zhu

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

1 REPLY 1
v-xinruzhu-msft
Community Support
Community Support

Hi @sunil222 

You can try to create a measure to set the color then put it to conditional formatting.

e.g Sample data 

vxinruzhumsft_0-1709256662567.png

Create a measure 

Measure = SWITCH(TRUE(),SUM('Table'[value])>0&&SUM('Table'[value])<=0.1,"#c36625",SUM('Table'[value])>0.1&&SUM('Table'[value])<=1,"red",SUM('Table'[value])<0,"green")

Then put it to the conditional formatting of the value column.

vxinruzhumsft_1-1709256730921.png

 

vxinruzhumsft_2-1709256738343.png

 

Output

vxinruzhumsft_3-1709256747730.png

Best Regards!

Yolo Zhu

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

 

 

 

 

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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