Cumulative Sales by Month but only display balances as of selected Months
Have an issue to solve and need the set analysis experts.
My back end data source is pretty much fixed and I have a need to be able to show cumulative sales amounts for each month but also need to be able to restrict which months are viewable in my chart (don't want to just plaster them all up there). So think of a Line Chart where only Months 7,8,9 are shown even though the sales balances themselves for Month's 7,8,9 take into account the sales from prior months (because we want to show cumulative sales).
Example: Bill's Month 7 cumulative balance should be 280
From reading a number of other threads I came up with this code but it won't give me the right number once I set the filter to be only Months 7,8,9. If I change the code to have it ignore the Month filter selection then it will just show every month's cumulative YTD sales in the Line chart. How do I solve this?