Forum Discussion
singhswat
10 years agoFrequent Visitor
Date Functions and reference
= DateAdd(DateTime.Date(DateTime.LocalNow()), 6, MONTH) OR = DATEADD(DateTime.Date(DateTime.LocalNow()), 6, MONTH) Expression error: The name 'DateAdd' wasn't recognized. Make sure it's spell...
- Anonymous10 years ago
singhswat DATEADD is a DAX language function and DateTime.Date and DateTime.LocalNow are M language functions. You are apparently in the query editor, which does not use DAX. The M equivalent of DATEADD is Date.AddDays but in your case it may be better to use Date.AddMonths.
Anonymous
10 years agoNot applicable
singhswat DATEADD is a DAX language function and DateTime.Date and DateTime.LocalNow are M language functions. You are apparently in the query editor, which does not use DAX. The M equivalent of DATEADD is Date.AddDays but in your case it may be better to use Date.AddMonths.