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)))
DeEviloN , You have to try like
MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
previous month value = CALCULATE(sum('Table'[total hours value]),previousmonth('Date'[Date]))
- DeEviloN4 years ago
Helper III
What does ('Table'[total hours value]?
- amitchandak4 years ago
Super User
DeEviloN , 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
- DeEviloN4 years ago
Helper III
This method does not work as the specified client made the payment in October, and before that in August
- amitchandak4 years ago
Super User
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)))