Dear experts,
I tried for the first time to utilize a planning level without time period profile (PRODCUST in comparison to PERPRODCUST) to perform a calculation similar as explained in this older post (Average value of next 3 periods).
As explained in the post, I performed the following steps:
Assume PERPRODCUST is the base planning level and monthly time granularity
1. KF1@ PERPRODCUST = IF ((PERIODID - $$PERIODIDCU$$ <= 2) and (PERIODID - $$PERIODIDCU$$ >=0) , CONSDEMANDQTY,null)
Extract the values for Current Month, M+1 and M+2
2. Add additional calculation. This will sum up all the values for Current Month, M+1 and M+2
KF1@PRODCUST = SUM(KF1@ PERPRODCUST)
3.
a. Create a helper key figure HKF1@PRODCUST to calculate average
HKF1@ PRODCUST = (KF1@PRODCUST / 3)
b. Create helper key figure and pass input key figure with time dimensions for e.g. KF
DMDPLANQTY
This will put the average value in Current period.
HKF1@PERPRODCUST = IF ((PERIOIDID=$$PERIODIDCU$$), HKF1@ PRODCUST, null)
c. KF2@PERPRODCUST = HKF1@PERPRODCUST
I really like the concept of utilizing the planning level PRODCUST. However, in Step 3b where the Helper Key Figure created at level PRODCUST is transferred to planning level PERPRODCUST, I receive an error:
The planning level for the output key figure and the planning level for the input key figure must match in the calculation definition.
As the input key figure HKF1@PRODCUST does not have PER as required for the output key figure HKF1@PERPRODCUST, I understand why the error pops up. Is there a flaw in the calculation, or did I miss something? My general question would be how it is possible to transfer a value of a KF at a level PRODCUST back to KFs on level PERPRODCUST.
Best regards
Holger