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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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