Forum Discussion
DeEviloN
Helper III
4 years agoPREVIOUSMONTH(DATESMTD
I have a measure that calculates based on the amount for the month of the last sales with the previous month when there were sales Prev last MTD Sales = CALCULATE (SUM ('Добавить1'[Количество изд...
- 4 years ago
DeEviloN , Try like
Last Month non Continuous = CALCULATE([sales],filter(ALL('Date'),eomonth('Date'[Date]) =eomonth( CALCUALTE( MAx(Table[Date]), FILTER(ALL('Date'),'Date'[Date]<max('Date'[Date]))),0)))
amitchandak
Super User
4 years agoDeEviloN , Try like
Last Month non Continuous = CALCULATE([sales],filter(ALL('Date'),eomonth('Date'[Date]) =eomonth( CALCUALTE( MAx(Table[Date]), FILTER(ALL('Date'),'Date'[Date]<max('Date'[Date]))),0)))
DeEviloN
Helper III
4 years agoIn your case, when you write a formula without specifying the month and close the parentheses, you get an error