cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ctedesco3307
Resolver II
Resolver II

Number of Months between a date and current month

Want to create a rolling ytd column  to show the number of months between a start date and today.

Need to include the year also - so for example the first row would return 12 not 0 b/c start date is in 2021 

 

Thanks in advace! 

ctedesco3307_0-1660229037642.png

 

1 ACCEPTED SOLUTION
2 REPLIES 2
AlexisOlson
Super User
Super User

Another simple method:

Date.Year([EndDate]) * 12 + Date.Month([EndDate]) - Date.Year([StartDate]) * 12 - Date.Month([StartDate])
ctedesco3307
Resolver II
Resolver II

Helpful resources

Announcements
November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

Microsoft 365 Conference â__ December 6-8, 2022

Microsoft 365 Conference - 06-08 December

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power BI Dev Camp Session 27

Ted's Dev Camp

This session walks through creating a new Azure AD B2C tenant and configuring it with user flows and custom policies.

Top Solution Authors
Top Kudoed Authors