I have two measure created. Total Project Dollars for the current year and last year. I plot both of them on an area chart by date and it works perfectly. I then calculate cumulative totals for both. The code is here:
If I put either one on an area chart alone, it works fine. When I put both of them on together…one sits on top of the other and they accumulate. I have no idea what I am doing wrong. If I select just 2019, it filters out all of the 2018 data. I cant keep both of them on the chart.
One thing to do here is always place formulas into tables first so you can see the results. This way you’ll know if it’s the formula which is the issue.
The issue you have here is simple…you don’t have a date table.
You must always have one. All time intelligence functions are optimized to work over date tables, not the dates within your fact tables.