I’m managing a FIFO-based investment fund and trying to automate daily journal entries for realized G/L. I use Alteryx to merge transaction reports and Excel (Purchases sheet, column G) to track tranche balances.
Total activity is easy to calculate—but breaking out daily G/L at the investment level is difficult.
My idea:
Calculate the cumulative realized G/L up to each day, then subtract the prior day’s total to isolate the net G/L for that specific day.
Possible method:
Generate a calendar of all dates using Alteryx.
Match each day's transactions (up to that date).
Subtract the previous day’s G/L from the current to get the daily value.
This should create a clear daily G/L time series. Open to other suggestions if there’s a better way.