I'm trying to deduct sales on each date from the stock. That means if I sold 10 units on 7th July from the stock of 100 units, I'd have 90 units left, and If I sell 20 units on 8th July the calculation would be 90-20=70 and so on as I sell units every day. The problem is I'm using getpivot is not changing dates as per the cells so I cannot copy the formula to the rest of the cells. is there any workaround? Check the screenshot to get an idea of what I'm trying to accomplish.
Here's the formula
AF4-GETPIVOTDATA("QTY.",$Z$3,"DATE",DATE(2022,6,6),"ORDER TYPE","Sell","BARODE/PRODUCT",639114570040)