I saw a more simple post related to this, but my table is a little more complicated as it has a few more components then just Beginning balance + activity = ending balance.
I've attached a workbook with some sample data and have color coded the cells based on where the information is coming from. Long story short, some of the information in my table is coming from an underlying report and the other information in the table is recalculated amounts based formulas and numbers from the report (i.e. I've added the yellow highlighted columns to my original report).
I'm having trouble calculating "Units Bought (Sold)", "Ending Units", and "Ending Units Value". The simple formulas for these are:
Units Bought (Sold) = [Current Row Activity] / [Row-1 Ending Units Value]
Ending Units = [Current Row Units Bought (Sold)] + [Row-1 Ending Units]
Ending Units Value = [Current Row Ending Value] / [Current Row Ending Units]
I've tried the multi row formula tool, but I have to repeat the tool each time as the units bought (sold) and ending units are dependent on each other. Basically, if I were to do this in excel, I would use the above formulas for one row and then drag those formulas down to the remaining rows. The piece that is throwing me off is how Alteryx calculates the formula for each row for the entire column, which makes the formulas above not work.The attached file includes the formulas I would use if I was trying to do this in excel.
Thanks in advance for the help!