Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Trying to workout difference between date A and date B.
For example: Date A - 15 Jan 2020 and Date B - 18 Apr 2021 should give me 1.25 years
Thank you in advance!
Solved! Go to Solution.
DATEDIFF( DATE(2020, 1, 15), DATE(2021, 4, 18), MONTH) / 12
DATEDIFF( DATE(2020, 1, 15), DATE(2021, 4, 18), MONTH) / 12