on 10-21-2015 11:58 AM
Hello Experts,
I have this script which i am running .I am getting an error:
RUN_LOGIC:Member "'2013.09'" not exist
The logic is :
*XDIM_MEMBERSET TIME = TMVL(-12,'%TIME_SET%'),TMVL(-12,'%YEAR%.12'),%TIME_SET%
*XDIM_MEMBERSET ENTITY = %ENTITY_SET%
*XDIM_MEMBERSET RPTCURRENCY = LC
*XDIM_MEMBERSET ACCOUNT = BAS(REVENUE)
*XDIM_MEMBERSET CATEGORY = %CATEGORY_SET%
*XDIM_MEMBERSET AUDITTRAIL = BAS(AuditTotal)
*WHEN TIME
*IS TMVL(-12,'%YEAR%.12'),%TIME_SET%
*WHEN ACCOUNT
*IS BAS(REVENUE)
*REC(EXPRESSION = %VALUE%-[TIME].[TMVL(-12,'%TIME_SET%')],ACCOUNT = S_Rev, TIME = TMVL(1,'%TIME_SET%'))
*ENDWHEN
*ENDWHEN
Your help will be appreaciated.I think its the syntax on TMVL
Regards
Lawrence
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK, let me describe the requirements. Please correct if I am wrong...
User is launching DM package and has to select some single month: 2015.02 (for example)
You want to perform calculations on the ACCOUNT = BAS(REVENUE) with the following logic (based on the attached file😞
Store the result in ACCOUNT = S_Rev
2015.02 (target) = 2015.02 + 2014.12 - 2014.02
(The logic in your test script is different)
Vadim
The correct script will be:
//%TIME_SET% = 2015.02
*SELECT(%Y%,[YEAR],TIME,ID=%TIME_SET%)
*XDIM_MEMBERSET TIME=TMVL(-12,%TIME_SET%),TMVL(-12,%Y%.12),%TIME_SET%
*XDIM_MEMBERSET ENTITY = %ENTITY_SET%
*XDIM_MEMBERSET RPTCURRENCY = LC
*XDIM_MEMBERSET ACCOUNT = BAS(REVENUE)
*XDIM_MEMBERSET CATEGORY = %CATEGORY_SET%
*XDIM_MEMBERSET AUDITTRAIL = BAS(AuditTotal)
*WHEN TIME
*IS TMVL(-12,%TIME_SET%) //2014.02
*REC(EXPRESSION = -%VALUE%,ACCOUNT=S_Rev,TIME=%TIME_SET%) //negative!
*ELSE //2015.02,2014.12
*REC(EXPRESSION = %VALUE%,ACCOUNT=S_Rev,TIME=%TIME_SET%)
*ENDWHEN
Vadim
P.S. Never use %YEAR% variable - it's based on the server time and contain current year!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Vadim,
Below is the detail of what i want to achieve:
The Business Requirement is to calculate a 12 month Rolling Revenue in a YTD Application.
Rolling revenue =Current Month + December -the beggining of the period because its included in the ytd figure.
EG
2014.09-----2014.12------2015.08
--- ---------12 months------------
Dimensions Included:
TIME
ENTITY
RPTCURRENCY
ACCOUNT
CATEGORY
AUDITTRAIL
This is going to be executed via data manager and the selections are:
category
entity
Time
Current Logic:
// CALCULATE ROLLING REVENUE, MATERIAL COST MONTHLY
//*SELECT(%MY_YR%,YEAR,CATEGORY,ID = Actual)
//*SELECT(%MY_MTH%,"[MONTH]","CATEGORY","[ID] = 'Actual'")
*XDIM_MEMBERSET TIME = TMVL(-12,%TIME_SET%),TMVL(-12,%YEAR%.12),%TIME_SET%
*XDIM_MEMBERSET ENTITY = %ENTITY_SET%
*XDIM_MEMBERSET RPTCURRENCY = LC
*XDIM_MEMBERSET ACCOUNT = BAS(REVENUE)
*XDIM_MEMBERSET CATEGORY = %CATEGORY_SET%
*XDIM_MEMBERSET AUDITTRAIL = BAS(AuditTotal)
*WHEN TIME
*IS TMVL(-12,%YEAR%.12),%TIME_SET%
*WHEN ACCOUNT
*IS BAS(REVENUE)
*REC(EXPRESSION = %VALUE%-[TIME].[TMVL(-12,%TIME_SET%)],ACCOUNT = S_Rev, TIME = TMVL(1,%TIME_SET%))
*ENDWHEN
*ENDWHEN
Your help will be greatly appreciated
User | Count |
---|---|
15 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.