Forum Discussion
add one year to date column
- 6 years ago
As a new column is should have worked. Check are you creating a measure or column
You can also try a new measure like
New column = Date(year('TableName'[createdDate])+1,month('TableName'[createdDate]),day('TableName'[createdDate]))
Hi andrea_chiappo ,
If the dates in the current context do not form a contiguous interval, the function returns an error. See this thread for a more comprehensive explanation.
You can try the formula mentioned in amitchandak .
You can also try this:
LastDate = DATEADD('TableName'[createdDate].[DATE], 1, YEAR)
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- andrea_chiappo6 years ago
Helper III
Nope, it doesn't allow this operation, saying that:
Column reference to 'createdDate' in table 'DimCustomers'cannot be used with a variation 'Date' because it does not have any
'createdDate' looks like this