Hi, kinda stuck here, I have a monthly total in a report that I want to also use to calculate a cumulative sum, or PTD total. The catch is I only want to pull 4 months of data, even though the PTD is over a 12 month period. I've tried to provide an example below:
April May June July
Sales Month 100 150 50 50
PTD Sales 850 1000 1050 1100
I'm not very well versed in SQL, so if anyone could explain in basic BO terminology. I've tried to create a subquery that does a runningsum on all 12 months and then only pulls the months that are in the main query (April-July), but not having much luck doing this, it keeps adding all 12 months to my main query......
April May June July
Sales Month 100 150 50 50
PTD Sales 850 1000 1050 1100
I'm not very well versed in SQL, so if anyone could explain in basic BO terminology. I've tried to create a subquery that does a runningsum on all 12 months and then only pulls the months that are in the main query (April-July), but not having much luck doing this, it keeps adding all 12 months to my main query......