Forum Discussion
alevandenes
Helper IV
3 years agoSubtract one month from date column
Hi Community, I need to create a calculated column that subtracts one month from an Invoice date column. The formula needs to be valid also for the change of the year. [DATEADD works but onl...
- 3 years ago
Hi alevandenes
Try using EDATE function (DAX)
Column = EDATE([Date],-1)Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
CLQ
Helper I
3 years agoI don't quite understand, you can use the function: Month('ColumnName')
or, if you want year and month number, something like:
concatenate(year(ColumnName),
month(ColumnName)).
(and in the event that you always want a leading zero, an if >0 and another concatenate would be nice)
I don't know if it's what you were looking for. If you can give an example, better 😁