on 2017 Jun 01 12:35 AM
Hi colleagues,
I wrote the following MDX funtion in order to get the Last Year based on the current period
*function PY(%KPI1%)
(PARALLELPERIOD([AIC_TIEMPO_SEM].LEVEL00,1,AIC_TIEMPO_SEM].CURRENTMEMBER),%KPI1%)
*endfunction
Example:
PY([AIC_T_VERSION].[ACTUAL]);SOLVE_ORDER=10
Member formula
Notes:
AIC_TIEMPO_SEM - Time dimension - DAY granularity
AIC_T_VERSION - Category dimension
Issue:
It works perfectly with non-leap years. Any workaround to solve this mdx when leap year would be helpfull
Version:
SAP BPC 10.0 NW
To my mind parallelperiod will not work on day level with leap years. Number of days is different...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, but parallelperiod function assumes that you have equal number of periods on the required level. MDX don't think about days, it will simply count the number of periods from the beginning of the year! And this is by design.
You can create a property like PREVYEARDATE and fill it for all TIME members. Then try to use it with strtomember.
User | Count |
---|---|
9 | |
5 | |
4 | |
3 | |
3 | |
2 | |
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.