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

Re: conditional executing commands in logic script

$
0
0

Hi Burak,

 

The idea is correct, but the implementation can be better:

 

1. In the ACCOUNT dimension create property TARGET and fill it:

 

ACCOUNT                         TARGET Property

PERC_DISCOUNT_001    DISCOUNT_001_VALUE

PERC_DISCOUNT_002    DISCOUNT_002_VALUE

PERC_DISCOUNT_900    DISCOUNT_900_VALUE

EXCISE_RATE                       EXCISE_VALUE

KNOW_HOW_FEE                 KNOW_HOW_VALUE


2. User will be able to select single or multiple accounts with PROMPT(SELECTINPUT... in DM package advanced script.


3. The code will be:


*XDIM_MEMBERSET TIME = 001.2016

*XDIM_MEMBERSET CATEGORY = BUDGET

*XDIM_MEMBERSET ENTITY = BAS(ENTITY_ALL)

*XDIM_MEMBERSET PRODUCT = BAS(PRODUCT_ALL)

 

*FOR %ACC% = %ACCOUNT_SET%

 

*XDIM_MEMBERSET ACCOUNT=%ACC% //ex.: PERC_DISCOUNT_001

 

*WHEN ACCOUNT

*IS *

*REC(EXPRESSION=[ACCOUNT].[REVENUE_BASE]*[ENTITY].[NO_ENTITY],ACCOUNT=ACCOUNT.TARGET)

*ENDWHEN

 

*NEXT

 

Vadim

 

P.S. Explanation of the formula:

([ACCOUNT].[REVENUE_BASE],[ENTITY].[BAS(ENTITY_ALL)])*([ACCOUNT].[PERC_DISCOUNT_001],[ENTITY].[NO_ENTITY])

Target - DISCOUNT_001_VALUE


Viewing all articles
Browse latest Browse all 8451

Trending Articles



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