Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
This should be very easy, yet it doens't work
I tried both creating a new column and a new measure to get dates one year
ahead with respect to the date column you see in the attachment.
As you can see, the createdDate is in Date format.
I tried the first logical thing:
Why doesn't it work?
Why can't it be easy to evaluate things with DAX?
Why most functions do not operate as the refernce says?
Solved! Go to Solution.
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.
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
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]))