Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9159

Re: Script Logic - Push to another model converting Periodic to YTD

$
0
0

Hi Subramani,

 

Try the following (with explicit definition of measure):

 

*XDIM_MEMBERSET CATEGORY = Actual

*XDIM_MEMBERSET MEASURES=PERIODIC //default but required if YTD is used in REC

*XDIM_FILTER ACCOUNT = [ACCOUNT].Properties("ACCTYPE") = EXP

 

*DESTINATION_APP = CONS

*SKIP_DIM = ACCOUNT,ENTITY

*ADD_DIM ACCOUNT1=706490,ENTITY1=UK365

 

*WHEN CATEGORY

*IS * //already scoped

*REC(EXPRESSION=[MEASURES].[YTD],DATASRC=DS_XFER_FIN)

*ENDWHEN

 

But it's better to use accumulation:

 

*XDIM_MEMBERSET CATEGORY = Actual

*XDIM_FILTER ACCOUNT = [ACCOUNT].Properties("ACCTYPE") = EXP

 

*SELEC(%TT%,"[ID]",TIME,"[YEAR]=$YY$ AND [PERIOD]<=$MM$ AND [CALC]='N'") //Select months from the beginning of the year to MM month.

*XDIM_MEMBERSET TIME=%TT%

 

*DESTINATION_APP = CONS

*SKIP_DIM = ACCOUNT,ENTITY

*ADD_DIM ACCOUNT1=706490,ENTITY1=UK365

 

*WHEN CATEGORY

*IS * //already scoped

*REC(EXPRESSION=%VALUE%,DATASRC=DS_XFER_FIN, TIME=$YY$.$MM$)

*ENDWHEN

 

Vadim


Viewing all articles
Browse latest Browse all 9159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>