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

Re: BPC NW 10 Logic Script: Conditional Statement

$
0
0

Something like this:

 

*LOOKUP RATE

*DIM R_ACCT=ACCOUNT.RATETYPE //or some fixed value like AVG...

*DIM R_ENTITY="GLOBAL"

*DIM RATEENT:INPUTCURRENCY=ENTITY.CURRENCY

*DIM RATEEMP:INPUTCURRENCY=EMPLOYEE.CURRENCY

*ENDLOOKUP

 

*XDIM_MEMBERSET ACCOUNT=1100111

*XDIM_MEMBERSET VERSION=Plan_1

*XDIM_MEMBERSET CURRENCY=LC

*XDIM_MEMBERSET TIME=$TIMEID$

 

//All Employees will be calculated

*WHEN EMPLOYEE

*IS * //All

*REC(EXPRESSION=%VALUE%*LOOKUP(RATEEMP)/LOOKUP(RATEENT),ACCOUNT=1100112,VERSION=Plan_2)

*ENDWHEN

 

//To improve accuracy for the case ENTITY.CURRENCY=EMPLOYEE.CURRENCY

//Overwrite the result with the original value

*WHEN EMPLOYEE.CURRENCY

*IS ENTITY.CURRENCY

*REC(EXPRESSION=%VALUE%,ACCOUNT=1100112,VERSION=Plan_2)

*ENDWHEN

 

Please read the discussion under: How to write dynamic BPC Script Logic - part 6

 

Vadim


Viewing all articles
Browse latest Browse all 3510

Trending Articles



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