Forum Discussion
Calendar Table MTD, Nextday & Previousday
- Anonymous9 years ago
Hi CGRPTAS,
MTD function will return a table that contains a column of the dates for the month to date.(in the current context).
For example:
This function often used to calculate the monthly rolling total. You can combination use DATESMTD function and LASTDATE function to get the current date.
Formula:
LASTDATE(DATESMTD('Date Table'[Date]))
In addition, if you want to get the current date by measure, you can simply use max or min function to get it.
Regards,
Xiaoxin Sheng
Hi CGRPTAS,
MTD function will return a table that contains a column of the dates for the month to date.(in the current context).
For example:
This function often used to calculate the monthly rolling total. You can combination use DATESMTD function and LASTDATE function to get the current date.
Formula:
LASTDATE(DATESMTD('Date Table'[Date]))
In addition, if you want to get the current date by measure, you can simply use max or min function to get it.
Regards,
Xiaoxin Sheng
Thank you Xiaoxin Sheng, That has resolved my issue, appreciate your detailed explanation.
Cheers!