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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.