Quantcast
Viewing all articles
Browse latest Browse all 8533

Re: Script Logic

Ok,

 

You want to multiply account Nominal Count for each Employee, Int Order, Cost Center, Time by some rate stored in Employee "NONE", Account "Personal Cost", Internal Order "IO_NONE" and corresponding Cost Center and Time.

 

For DM package the script will be:

 

//Scope for the script from DM SELECTION

*XDIM_MEMBERSET TIME=%TIME_SET%

*XDIM_MEMBERSET INTORDER=%INTORDER_SET%

*XDIM_MEMBERSET EMPLOYEE=%EMPLOYEE_SET%

*XDIM_MEMBERSET COSTCENTER=%COSTCENTER_SET%

 

*XDIM_MEMBERSET ACCOUNT=NOMINALCOUNT

 

*WHEN ACCOUNT

*IS * //scoped to NOMINALCOUNT

*REC(EXPRESSION=%VALUE%*([ACCOUNT].[PERSONALCOST],[EMPLOYEE].[NONE],[INTORDER].[IO_NONE]),ACCOUNT="PERSONALCOST")

*ENDWHEN

 

Vadim


Viewing all articles
Browse latest Browse all 8533

Trending Articles