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
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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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