on 2022 Nov 15 2:04 PM
Hello Experts,
I have a business requirement where user wanted the past 12 month/24 months sales history average to be displayed in past horizon
as a workaround I created a forecast model with simple average algorithm and capture the value in M1 month. but this required running for stat fcst.
Do we have any IBP Function or any other more suitable option for this ?
Request clarification before answering.
Hi daeboo183
You can create a new KF "Avg History" using the IBP function: IBP_RAGGR. From the example given by you, the parameters which can be used are:
Input key figure = History
Aggregation mode = AVG
Start rolling agg = -100 (Assuming root time period is month, else change this value accordingly)
Duration of rolling agg. = 200 (Assuming root time period is month, else change this value accordingly)
Horizon = PASTCURRENT
Restart at = (Not provided)
For more details, refer:
BR,
Praveen Jadhav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Devesh,
Its just simple and there are multiple ways to resolve this. I will iterate 2 ways to you. Before that lets assume that KF1 is the History and KF2 is the Avg History and the Base Planning Level of KF1 is BPL. Now we have to create 1 Planning Level as the copy of BPL, but without periodicity in them. Eg: if BPL is MTHPRODLOCCUST, then the PL you have to create is PRODLOCCUST. I will assume that Planning level as BPL_NO_PERIOD.
1) Using your Forecast Model output along with the IBP_CURRENT_VALUE.
Lets say Your Forecast Model output is KF2@BPL and you are placing the result in the current period. You can do the below calculations in KF2.
KF2@REQUEST=AVG("KF2@BPL(calculated)")
KF2@BPL(Calculated) = "KF2@BPL_NO_PERIOD(calculated)"
KF2@BPL_NO_PERIOD(calculated) = IBP_CURRENT_VALUE("KF2@BPL(Stored)")
Note: KF2 should be changed to Calculated and Stored.
2) Using a mixture of 2 simplified calculations to keep it automated instead of depending on stored value of the KF2.
To achieve this, we have to create a copy of the Planning Level BPL. I assume the copy planning level as BPL_COPY. Once the Planning Level is available, you can use the below calculations.
KF2@REQUEST = AVG("KF2@BPL(calculated)")
KF2@BPL(Calculated) = "KF2@BPL_NO_PERIOD(calculated)"
KF2@BPL_NO_PERIOD(calculated) = IBP_CURRENT_VALUE("KF2@BPL_COPY(calculated)")
KF2@BPL_COPY(calculated) = IBP_CAGGR("KF1@BPL(Stored), "Avg","Backward","Past")
If the avg has to be populated only in the past horizon, not supposed to be in Future Horizon, Then you can use the below calculation.
KF2@BPL(Calculated) = IF("PERIODID0"<"$$PERIODID0CU$$", "KF2@BPL_NO_PERIOD(calculated)", NULL)
Let me know if this helps or if you have any queries.
Best Regards,
Riyaz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
4 | |
3 | |
2 | |
2 | |
2 | |
2 | |
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.