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
Undercoverstig
New Member

If formula / Conditional formatting with 0% and NA's

Hi All

 

Could someone help with possibly an IF fromula please. Basically I needed to add an +0 to my formula as Team E should show 0% in that they had activity but did not meet the timely criteria.

 

However Team C have not have any activity and with conditional formatting (<70%) thier cell highlights green as assuming it is because of no return. 

 

What would I need to add to my formula either to mark Team C's row as NA? and for the Conditional Formatting to not apply. 

 

Events Logged  = DIVIDE(
CALCULATE(COUNTA('Actvity logged'[Days between]),'Actvity logged'[Days between]<=30)+0,
CALCULATE(COUNTA('Actvity logged'[Days between]),'Actvity logged'[Days between ]>=0))
 
 timely.png
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Undercoverstig ,

 

According to your description, here are my steps you can follow as a solution.

(1) We can create measures.

na%Timely = IF(MAX('Table'[Activity Logged]) ==BLANK(),"NA",'Table'[%Timely])
Measure = SWITCH(TRUE(),[na%Timely]="NA","WHITE",[na%Timely]+0<0.7,"GREEN")

(2)Set conditional formatting.

Picture1.pngPicture2.png

(3) Then the result is as follows.

vtangjiemsft_0-1671528814667.png

Best Regards,

Neeko Tang

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
Anonymous
Not applicable

Hi @Undercoverstig ,

 

According to your description, here are my steps you can follow as a solution.

(1) We can create measures.

na%Timely = IF(MAX('Table'[Activity Logged]) ==BLANK(),"NA",'Table'[%Timely])
Measure = SWITCH(TRUE(),[na%Timely]="NA","WHITE",[na%Timely]+0<0.7,"GREEN")

(2)Set conditional formatting.

Picture1.pngPicture2.png

(3) Then the result is as follows.

vtangjiemsft_0-1671528814667.png

Best Regards,

Neeko Tang

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

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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