The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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