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