on 2016 Jul 13 8:52 PM
Hi experts,
so I have KPI_I01 loaded value
KPI1040 : the cumulated value of KPI_I01 ( AST and we LTD measures life to date)
when I execute this script in Calculation.LGF
*XDIM_MEMBERSET MEASURES = PERIODIC
*XDIM_MEMBERSET TEMPS=BAS(2015.TOTAL)
*XDIM_MEMBERSET KPI_CDG =KPI_I01
*WHEN_REF_DATA = MASTER_DATA
*WHEN KPI_CDG
*IS *
*REC(EXPRESSION=[MEASURES].[LTD],KPI_CDG=KPI10406)
*ENDWHEN
*COMMIT
and this script in default .LGF
//Allocation
*SELECT(%LASTTID%,[TIMEID],TEMPS,ID=%TEMPS_SET%)
*SELECT(%Y%,[YEAR],TEMPS,ID=%TEMPS_SET%)
*SELECT(%BS%,[ID],KPI_CDG,ACCTYPE=AST)
*SELECT(%TARGET%,[ID],TEMPS,TIMEID>%LASTTID% AND YEAR=%Y% AND CALC=N)
*XDIM_MEMBERSET KPI_CDG=%BS%
*RUNALLOCATION
*FACTOR=1
*DIM TEMPS WHAT=%TEMPS_SET%;WHERE=%TARGET%
*ENDALLOCATION
*COMMIT
as you can see at the sceershot the allocation does not work why ?
and the scipt of the custom measures LTD is SUM([%TEMPS%].[2015.01]:[%TEMPS%].CURRENTMEMBER)
and when I change [MEASURES].[LTD] to [MEASURES].[YTD] it's working
Thank you .
Request clarification before answering.
Sorry, but not clear!
Show the report for KPI_I01
With 3 measures in rows:
PERIODIC
YTD
LTD
What is the ACCTYPE for KPI_I01?
Vadim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Test LTD like:
'IIF([%ACCOUNT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="INC",SUM([%TEMPS%].[2015.01]:[%TEMPS%].CURRENTMEMBER,-[MEASURES].[/CPMB/SDATA]),IIF([%ACCOUNT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="EXP",SUM([%TEMPS%].[2015.01]:[%TEMPS%].CURRENTMEMBER,[MEASURES].[/CPMB/SDATA]),0))';SOLVE_ORDER=3
If you account dimension name is ACCOUNT
Report:
With LTD measure here:
'IIF([%INACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="INC",SUM([%PERIODS%].[2005.JAN]:[%PERIODS%].CURRENTMEMBER,-[MEASURES].[/CPMB/SDATA]),IIF([%INACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="EXP",SUM([%PERIODS%].[2005.JAN]:[%PERIODS%].CURRENTMEMBER,[MEASURES].[/CPMB/SDATA]),0))';SOLVE_ORDER=3
| User | Count |
|---|---|
| 40 | |
| 9 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.