Dears,
I have a fact table with Sales Values and Date dimension. Fact table contains cumulative values, for example: January: 1100, February: 1100+1000, March: 1100+1000+1200 etc.
I want to add measure which returns values for seperate months. For example: in Jan 1100, in Feb 1000, in March 1200. I was trying to use this code:
SUM('SALES'[SALES VALUE])-CALCULATE(SUM('SALES'[SALES VALUE]),PREVIOUSMONTH('DATE'[DATE])
but it still returns invalid value.
Below you find Excel with result in column D which I want to receive.