Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi Power BI community
I want to add 2 years to today in DAX.
My Dax is like this
Two years in the future = Today() + 730
My problem is that this DAX doesn't respect leap years.
Is there someway to change the DAX so it adds years instead of days?
All help is appriciated
Solved! Go to Solution.
Use the DATEADD function:
New Date = DATEADD('Table Name'[Old Date], +2 , year)
see also:
I did this
Use the DATEADD function:
New Date = DATEADD('Table Name'[Old Date], +2 , year)
see also:
Thanks for the solution.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
78 | |
78 | |
58 | |
35 | |
32 |
User | Count |
---|---|
99 | |
59 | |
56 | |
46 | |
40 |