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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
trevb
Resolver I
Resolver I

Number of Months between two dates

This seems like a really dumb thing to be asking.

 

I need to count the number of Months between two dates.  I can happily find out the number of days, but that doesn't help much as number of days in a month varies.  This can easily be done in Excel using DateDiff but I cannot figure out how to do this in PowerQuery.  I need that figure to move to the next step of my query.

 

The only other thing that might do this is if I could get a count of a group of rows.    

 

I'd enjoy figuring t this out for myself if I had the time but I need to get this done quickly so any hints gratefully received.

18 REPLIES 18

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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