Forum Discussion
PREVIOUSMONTH(DATESMTD
- 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)))
This method does not work as the specified client made the payment in October, and before that in August
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)))
- DeEviloN4 years ago
Helper III
help please, in the case when I put 1, then he counts the previous month, when 0 does not see it, but when choosing another client at 0 he sees the previous month, and at 1 not, how to fix it?Prev last MTD Sales = CALCULATE (SUM ('Добавить1'[Количество изделий всего, шт]), FILTER(ALL('Добавить1'[Дата выдачи]),EOMONTH('Добавить1'[Дата выдачи],0)=EOMONTH(CALCULATE(MAX('Добавить1'[Дата выдачи]),FILTER(ALL('Добавить1'[Дата выдачи]),'Добавить1'[Дата выдачи]<max('Добавить1'[Дата выдачи]))),0)))
- DeEviloN4 years ago
Helper III
In your case, when you write a formula without specifying the month and close the parentheses, you get an error