我正在尝试解决Power BI中的问题,如何创建包含上一行中其值的计算列?
Stock= Previous Sell in - Previous Sellout + Previous Stock
我希望得到以下结果:
Year,Week,Sell in,Sell Out,Stock
2018,52,360,350,325 >>>>last data
2019,1,350,330,335
2019,2,350,345,355
2019,3,350,345,360
2019,4,350,324,365
2019,5,350,360,391
我尝试使用计算列,但最终导致循环依赖错误。