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

Re: Script Logic

$
0
0

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 8644

Trending Articles



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