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)))
DeEviloN
Helper III
4 years agoWhat does ('Table'[total hours value]?
amitchandak
Super User
4 years agoDeEviloN , Just a different measure in example ,
like
MTD = CALCULATE(SUM ('Добавить1'[Количество изделий всего, шт]),DATESMTD('Date'[Date]))
last MTD = CALCULATE(SUM ('Добавить1'[Количество изделий всего, шт]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
previous month = CALCULATE(SUM ('Добавить1'[Количество изделий всего, шт]),previousmonth('Date'[Date]))
- DeEviloN4 years ago
Helper III
example file look at this please