Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
krishnagutha1294
Partner - Contributor II
Partner - Contributor II

Need to optimize the set Analysis in load script

Hi All,

I am facing an issue  that while opening the sheet the calculation taking too long  I am having below expression in measure 

(sum(Targeted_Qty1) -

(sum(aggr(

if(sum("Targeted_Qty1") - sum("Actual_Qty1") >0,
sum({<[%Flag_IsThisDate]={1}>}"Targeted_Qty1")-sum({<[%Flag_IsThisDate]={1}>}"Actual_Qty1"),
sum({<[%Flag_IsThisDate]={1}>}"Actual_Qty1") - sum({<[%Flag_IsThisDate]={1}>}"Targeted_Qty1")
,)



,Week_Start,Segment,Plant_Description,PLATFORM,SAP_Item_Nbr)) )) / sum(Targeted_Qty1)

 

Is any possibility to write these condition in load script.

 

Thank you in advance!!

 

Thanks,

Krishna

1 Reply
krishnagutha1294
Partner - Contributor II
Partner - Contributor II
Author

Hi all,

Please help me to find the solution for above question?

 

Thanks,

Krishna