Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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]))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
99 | |
69 | |
46 | |
39 | |
33 |
User | Count |
---|---|
163 | |
110 | |
61 | |
51 | |
40 |