For a customer of ours we're building a Supply Planning model on daily basis.
When trying to build the core module I'm running into a circular reference which I can not seem to solve.
Any help would be greatly appreciated.
Relevant line items are shown in the screenshot below.
For the Suggested Reorder Quantity the formula should be to take the Reorder point - Ending inventory - MOVINGSUM(Scheduled receipts, 1, Supplier Lead Time) - MOVINGSUM(Planned Receipts, 1, Supplier Lead Time -1).
However the Planned Receipts are calculated based on the Suggested Reorder Quantity, which you will theoretically order. Formula goes as follows: OFFSET(Suggested reorder quantity, -Supplier Lead Time, 0).
I've tried a myriad of ways to workaround it but can't seem to make it work.
Hope anyone can help, glad to jump on a Teams or provide extra information where necessary.
The full formula for Planned Receipt is as followed.
IF OFFSET(M Supply Plan Custom Days.'Days you Order this SKU 0/1'[SUM: M Custom Day Mapping.Standard Day Running], -'M SYS - SP7 - SKU / DC / Supplier'.lead time, 0) = 1 THEN OFFSET(Suggested reorder quantity, -'M SYS - SP7 - SKU / DC / Supplier'.lead time, 0) ELSE 0
As in the model we have an Ordering Calendar which is the 'Days you Order this SKU', therefore you have to look back if Today - Supplier Lead Time would be an Ordering Day than we would have Planned Receipts.