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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
puneethjp
Helper II
Helper II

Conditional formatting gives in correct values.

 

Hi, 

 

I am trying for the below scenrio: 

 

If KPI delta is greater than zero then green traingle should point green. ( value is in percentage)

If KPI delta is less than zero then red traingle should point red. ( value is in percentage)

 

Negative values should be red and positive in green

puneethjp_0-1697561132498.png

 

puneethjp_1-1697561331450.png

 

Thank you for your time and help. 

 

Thank,

Puneeth

 

2 ACCEPTED SOLUTIONS
Ritaf1983
Super User
Super User

Hi @puneethjp 
promo price seems like the number.
try to change the condition to "number " instead percent.
( use 1 as 100%)
+
Your conditions are the same both less than 100%....
Check it again.
Or 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot), and the wanted result, I will show how to create a needed condition.


Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

Hi @puneethjp 
As I mentioned use the "Number" option to format, with some huge unreal numbers on a minimum of the first condition and a maximum of a second.
It will work:

Ritaf1983_2-1697564587472.png

 

A more elegant way is to use flag measure :

more elegant way flag = if('Sheet1'[percent for formatting]>0,1,0)
and use it in formatting:
Ritaf1983_3-1697565075574.png

Sample file with both options 

 

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

5 REPLIES 5
Ritaf1983
Super User
Super User

Hi @puneethjp 
promo price seems like the number.
try to change the condition to "number " instead percent.
( use 1 as 100%)
+
Your conditions are the same both less than 100%....
Check it again.
Or 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot), and the wanted result, I will show how to create a needed condition.


Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hi, 

 

Hi @Ritaf1983 We only have one column which is KPI delta. Do not consider the other value which is a number. So, for the column which is delta column which has values in percentage. I just to add a conditional formating. where when the percentage value is above 0 is should be green. When less than 0 (negative values) is should be red.

Hi @puneethjp 
As I mentioned use the "Number" option to format, with some huge unreal numbers on a minimum of the first condition and a maximum of a second.
It will work:

Ritaf1983_2-1697564587472.png

 

A more elegant way is to use flag measure :

more elegant way flag = if('Sheet1'[percent for formatting]>0,1,0)
and use it in formatting:
Ritaf1983_3-1697565075574.png

Sample file with both options 

 

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Thank you so much. It helped.

@puneethjp 

Glad to help 🙂

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors