FinanceGuy
New member
- Local time
- Today, 18:11
- Joined
- May 7, 2021
- Messages
- 5
With the four columns on the left down below, I want to be able to populate the fifth column (Year to Date Revenue):
What is the best function or query to get the Year to Date Revenue column populated?
I've been experimenting with DSum, but cannot seem to get it to work. I am open to creating a temporary table to calculate and get the fifth column and joining that table and appending the data from that column into my master table.
Subscriber | Month | Year | Monthly Revenue | Year to Date Revenue |
Apple | 1 | 2020 | $100 | $100 |
Apple | 2 | 2020 | $300 | $400 |
Apple | 12 | 2020 | $1,250 | $1,250 |
Pepsi | 1 | 2020 | $200 | $200 |
Pepsi | 2 | 2020 | $500 | $700 |
Apple | 3 | 2021 | $100 | $100 |
Apple | 4 | 2021 | $400 | $500 |
Pepsi | 1 | 2021 | $600 | $600 |
Pepsi | 2 | 2021 | $1000 | $1,600 |
What is the best function or query to get the Year to Date Revenue column populated?
I've been experimenting with DSum, but cannot seem to get it to work. I am open to creating a temporary table to calculate and get the fifth column and joining that table and appending the data from that column into my master table.