Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Aladdin777
Frequent Visitor

Difference between dates in months and years

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!

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

DATEDIFF( DATE(2020, 1, 15), DATE(2021, 4, 18), MONTH) / 12

View solution in original post

1 REPLY 1
johnt75
Super User
Super User

DATEDIFF( DATE(2020, 1, 15), DATE(2021, 4, 18), MONTH) / 12

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.