Forum Discussion
Niels_T
4 years agoPost Patron
MTD Previous month
Hello, I have a MTD measure that goes as followed: Quantity (base) MTD = IF ( MIN ( 'Calendar'[Date] ) <= CALCULATE ( MAX ( 'Calendar'[Date]), ALL ( 'Returns') ), CALCULATE ( SUM ( 'Return...
- 4 years ago
Hello,
I've fixed the issue!
I used the following DAX measure:Quantity (base) Last Month MTD = IF (MIN ( 'Calendar'[Date] ) <= CALCULATE ( MAX ( 'Calendar'[Date]), ALL ( 'Returns') ),CALCULATE ( SUM ( 'Returns'[quantity (base)]), DATESMTD (DATEADD('Calendar'[Date], -1, MONTH ))))
Niels_T
4 years agoPost Patron
Hello,
I've fixed the issue!
I used the following DAX measure:
Quantity (base) Last Month MTD = IF (
MIN ( 'Calendar'[Date] ) <= CALCULATE ( MAX ( 'Calendar'[Date]), ALL ( 'Returns') ),
CALCULATE ( SUM ( 'Returns'[quantity (base)]), DATESMTD (DATEADD('Calendar'[Date], -1, MONTH )
)))