Hi Experts,
The ENVIRONMENT is consolidation and the measure we use is YTD.
I am trying to convert YTD to QTD using Script Logic.
The Code I have written is working good but it runs for all the periods, How can I make it run for the selected time period alone.
This is taking 8-10 min to get executed as it is running for all periods.
Please suggest me on this. Thanks in advance ..!!!
*SELECT(%ENTRYYR%,"[YEAR]","TIME","[ID]=%TIME_SET%")
*SELECT(%YRMTHS%,[ID],"TIME",YEAR=%ENTRYYR% AND CALC='N')
*SELECT(%PNLACCTS%,"ID","ACCOUNT","ACCTYPE = 'INC','EXP'")
*XDIM_MEMBERSET TIME=%YRMTHS%
*XDIM_MEMBERSET CATEGORY = %CATEGORY_SET%
*XDIM_MEMBERSET ENTITY = %ENTITY_SET%
*XDIM_MEMBERSET ACCOUNT = %PNLACCTS%
*XDIM_MEMBERSET Scope = NA_GROUP
*XDIM_MEMBERSET RPTCURRENCY = %RPTCURRENCY_SET%
//*XDIM_MEMBERSET AUDITTRAIL = Input
*WHEN RPTCURRENCY
*IS %RPTCURRENCY_SET%
//Copy value as it is
*REC(CATEGORY=%CATEGORY_SET%QTD)
// Negate quarter ends YTD and post to next quarter months
*WHEN TIME
*IS %ENTRYYR%.03
*REC(FACTOR=-1,CATEGORY=%CATEGORY_SET%QTD,TIME=%ENTRYYR%.04)
*REC(FACTOR=-1,CATEGORY=%CATEGORY_SET%QTD,TIME=%ENTRYYR%.05)
*REC(FACTOR=-1,CATEGORY=%CATEGORY_SET%QTD,TIME=%ENTRYYR%.06)
*IS %ENTRYYR%.06
*REC(FACTOR=-1,CATEGORY=%CATEGORY_SET%QTD,TIME=%ENTRYYR%.07)
*REC(FACTOR=-1,CATEGORY=%CATEGORY_SET%QTD,TIME=%ENTRYYR%.08)
*REC(FACTOR=-1,CATEGORY=%CATEGORY_SET%QTD,TIME=%ENTRYYR%.09)
*IS %ENTRYYR%.09
*REC(FACTOR=-1,CATEGORY=%CATEGORY_SET%QTD,TIME=%ENTRYYR%.10)
*REC(FACTOR=-1,CATEGORY=%CATEGORY_SET%QTD,TIME=%ENTRYYR%.11)
*REC(FACTOR=-1,CATEGORY=%CATEGORY_SET%QTD,TIME=%ENTRYYR%.12)
*ENDWHEN
*ENDWHEN
*COMMIT