Forum Discussion

KossithAz's avatar
KossithAz
Helper I
2 years ago

Calculating last month values

Hi folks,

I have a dataset that contains the date, end of month date and it's values. However, having searched online, I cannot find a way to calculate the last month, as my current formula is showing the current months date and not the previous month.

XX LAST MONTH = CALCULATE(sum('Table1'[PEOPLE]),DATEADD('Dates Table'[month_end],-1,MONTH))


As you can see for example, 30 June 2020 xx last month is showing sum of people for June 2020, not May 2020.

How can I get it to show the previous month?

3 Replies