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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Conditional Formatting for Percentage Value

ShubhamPandey_0-1671769356807.png

I have a measure with percetage format. So in card it gives a certain percentage value.
I want to apply conditional formatting where if  < 2% "Green" and >2% "Red"but in Format Visual the options are greyed out. If I apply the below conditions it just make green for all values.

ShubhamPandey_1-1671769482075.png

What is the correct method for it ? Please help

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , if this % column then 2 means .02 

 

< .02

 

You can also create a measure and use that in conditional formatting using field value option

 

Switch( True() ,
[percent] <.02, "Green",
 "Red"
)

 

 

How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/1682539
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pane-66e0afcb15f3

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

5 REPLIES 5
FarhanAhmed
Community Champion
Community Champion

If measure returning a Text then you will not be able to change the drop down values.

 

You need to return integer/decimal number datatype of your measure in order to see it.

Try not to format in Measure but instead using Formatting tab to select format of your measure.







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

Proud to be a Super User!




Anonymous
Not applicable

Hi,

Yes the format for my measure is "Percentage" but when i use IF or SWITCH statement it gives me text value "Red" or "Green"
Switch( True() ,
[percent] <.02, "Green",
 "Red"
)


Use this measure as below in conditional formatting.

FarhanAhmed_0-1671771207595.png

 







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

Proud to be a Super User!




amitchandak
Super User
Super User

@Anonymous , if this % column then 2 means .02 

 

< .02

 

You can also create a measure and use that in conditional formatting using field value option

 

Switch( True() ,
[percent] <.02, "Green",
 "Red"
)

 

 

How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/1682539
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pane-66e0afcb15f3

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

hi @amitchandak ,

Got this now!! It is working. Thanks

Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.