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
ukeasyproj
Helper II
Helper II

having issues with visuals refreshing slowly

I suspect its this measure that is causing the slow down:

 

count of ontime = IF( ISBLANK(CALCULATE(DISTINCTCOUNT([ProjectID]), FILTER('TT_ProjectMembers', [Completion Status of Project] = "On Time" && [Count me] = "Yes" ))) = FALSE() , CALCULATE(DISTINCTCOUNT([ProjectID]), FILTER('TT_ProjectMembers', [Completion Status of Project] = "On Time" && [Count me] = "Yes" )), IF( ISBLANK(CALCULATE(DISTINCTCOUNT([ProjectID]), FILTER('TT_ProjectMembers', [Completion Status of Project] = "Late" && [Count me] = "Yes" ))) = FALSE(), 0, BLANK() ))

 

any guidance on how to make this measure more efficient will be appreciated

1 REPLY 1
Anonymous
Not applicable

Hi @ukeasyproj,

 

You can try to use below formula if it works on your side.

 

count of ontime = 
var temp = FILTER('TT_ProjectMembers', [Count me] = "Yes" )
var OnTime =CALCULATE(DISTINCTCOUNT([ProjectID]), FILTER(temp,  [Completion Status of Project] = "On Time"))
var Late =CALCULATE(DISTINCTCOUNT([ProjectID]), FILTER(temp,  [Completion Status of Project] = "Late"))
return
IF(OnTime>0, OnTime,IF(Late>0,0,BLANK()))

 

 

Regards,

Xiaoxin Sheng

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.

Top Solution Authors
Top Kudoed Authors