on 05-30-2016 4:40 PM
Hi Experts,
I 'm trying to calculate the value of a KPI wich is (the value of currentday -Value of previous day )/2 , I added an attribute in my time dimension manually where I did the previous time, and I use Look Up in the script but when I try to execute it , it's giving me a dump.
1-
*SAP_BW 740 0009 SAPKW74009 SAP Business Warehouse
*CPMBPC 801 0009 SAPK-80109INCPMBPC CPM Business Planning and Consolidation
2- DUMP
3-I Have 2 dimensions KPI_CDG and Time dimension Temps. and the model is called Indi_Financiers
TIME:02015.01,2015.02,2015
KPI_Extraction :Capital....
4-Default.LGF
5 'm trying to calculate the value of a KPI wich is (the value of currentday -Value of previous day )/2
6-this is the script i'm trying
*LOOKUP Indi_Financiers
*DIM PRV: TEMPS=TEMPS.PREV
*ENDLOOKUP
*WHEN KPI_CDG
*IS KPI10406
*REC(EXPRESSION=(%VALUE%-LOOKUP(PRV))/2,KPI_CDG =KPI1021)
*ENDWHEN
*COMMIT
7- Data like 7800
8-
I can't do it .
thank you
and I was forgetting *DIM MEASURES=PERIODIC
When I added it , it worked .
so thank you .
*LOOKUP Indi_Financiers
*DIM PRV: TEMPS=TEMPS.PREV
*DIM MEASURES=PERIODIC
*ENDLOOKUP
*XDIM_MEMBERSET MEASURES=PERIODIC
*WHEN KPI_CDG
*IS KPI10406
*REC(EXPRESSION=(%VALUE%-LOOKUP(PRV))/2,KPI_CDG =KPI1021)
*ENDWHEN
*COMMIT
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And what about next period value for KPI1021? It will be incorrect!
Sample:
You have already data in 2016.02, 2016.03 and 2016.04 for KPI10406 and result in KPI1021
You change value in KPI10406 for 2016.03 and the correct value will be saved in KPI1021 for 2016.03
But KPI1021 for 2016.04 will be incorrect!
P.S. Corrected - for 2016.04!!
You will have to add property NEXT:
*LOOKUP Indi_Financiers
*DIM PRV: TEMPS=TEMPS.PREV
*DIM NXT: TEMPS=TEMPS.NEXT
*DIM MEASURES=PERIODIC
*ENDLOOKUP
*XDIM_MEMBERSET MEASURES=PERIODIC
*WHEN KPI_CDG
*IS KPI10406
*REC(EXPRESSION=(%VALUE%-LOOKUP(PRV))/2,KPI_CDG =KPI1021)
*ENDWHEN
*WHEN KPI_CDG
*IS KPI10406
*REC(EXPRESSION=(LOOKUP(NXT)-%VALUE%)/2,KPI_CDG =KPI1021,TEMPS=TEMPS.NEXT)
*ENDWHEN
And don't use useless *COMMIT
Time dimension screenshot with PREV property!
Have you filled all PREV for all base members?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
14 | |
4 | |
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.