Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
My issue in PowerBI is that I continue to run into circular dependency issues when referring to the forecast from the month prior in PowerBI. I've tried creating separate tables, calculated columns, measures, etc to no avail
Solved! Go to Solution.
Hi,
I have solved a similar problem in the attached files.
Hope these help.
Hi @stellion17 ,
DAX cannot reference the data in the previous row, i.e., DAX cannot implement iteration.
But based on the information you provided, perhaps you can modify your formula to:
Month 1 Figure = InitialInventory + SumInboundPOsMonth1 - ForecastMonth1
Month 2 Figure = InitialInventor + ( SumInboundPOsMonth1 + SumInboundPOMonth2 ) - ( ForecastMonth1 + ForecastMonth2 )
Month 3 Figure = InitialInventor + ( SumInboundPOsMonth1 + SumInboundPOMonth2 + SumInboundPOMonth3 ) - ( ForecastMonth1 + ForecastMonth2 + ForecastMonth3 )
...............
As long as all the data in your SumInboundPOsMonth and ForecastMonth columns are present.
Or you can use List.Accumulate or List.Generate in Power Query, two M functions that enable iteration.
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
| User | Count |
|---|---|
| 50 | |
| 41 | |
| 32 | |
| 14 | |
| 13 |
| User | Count |
|---|---|
| 84 | |
| 72 | |
| 37 | |
| 27 | |
| 24 |