I have a 12 Month Rolling Total Calculation (see below) that tracks the number of deals brought in on a monthly basis. The calculation works correctly until I try to slice by the Source fact, which allows the user to drill down into the employees that brought the deals in. The trouble seems to be that not all Sources bring in Deals every month, thus the value for that month would be 0, which causes the calculation to revert to the earliest value it can find (in this case, I'm only visualizing the previous 3 years, so it currently reverts to December 2016). This causes incorrect data to be displayed as well as odd spikes in the line graph that tracks the running total. Any idea why the 0 value would through off this calculation?
After looking at the problem further, it looks like the calculation isn't reverting to a previous value, but summing all values when a given month is 0. I can't seem to figure out why the calculation works so long as there are values being added on a monthly basis.