Question for a sql or excel guru.
Table 1 is similar to Sage's Inventory Transaction table. Has Date, item, qty & cost. THere are days with more than one transaction, days with none.
Table 2 is simply every date in 2017 & 18.
Assume we have another table or sheet that has the opening balance as of 1/1/2017.
Want to run a report or query or excel sheet that shows the inventory balance, , for every day starting at 1/1/2017 through today, as of each day, with a running total of the balance on hand per day. IF a day has no transactions, just pull the balance forward, if it has say 10 transactions, sum them up and show one row.
I know the output could be large given there will be 365 rows per item, but a client needs this for an inventory analysis project.
When I try and use excel to relate the date table to the inventory table it says it can't because there are multiple transactions on the same date in the inventory table which means the key isn't unique. It tells me to reverse the relationship and I do. It then works. However, I get no records for the days that have no transactions...