Forum Discussion
Moving measure
As per the table below, I am trying to create a measure to calculate the forecasted headcount for future months, by adding new hires and subtracting terminations from previous month headcount.
The problem is that after the first forecasted month, the starting point would be the previous month result of this same calculation. Is there a way to do this avoiding circular reference errors?
Thanks,
R
- Anonymous3 years ago
Hi rainbow_test ,
The value of the current row is based on the previous row of the same field, which is an iteration. For iterations, you can refer to:
Iteration in DAX - Microsoft Fabric Community
For and While Loops in DAX - Microsoft Fabric Community
In Power BI Desktop, you can use the forecasting feature. Please refer to
Use the Analytics pane in Power BI Desktop - Power BI | Microsoft Learn
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 Reply
- AnonymousNot applicable
Hi rainbow_test ,
The value of the current row is based on the previous row of the same field, which is an iteration. For iterations, you can refer to:
Iteration in DAX - Microsoft Fabric Community
For and While Loops in DAX - Microsoft Fabric Community
In Power BI Desktop, you can use the forecasting feature. Please refer to
Use the Analytics pane in Power BI Desktop - Power BI | Microsoft Learn
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.