I need to find the month difference between two dates (checkIn and Checkout dates) in Power Query (M-query). It can be similar to DAX bellow.
period of months = DATEDIFF([dateCheckIn], [dateCheckOut], MONTH )
I found the function
daysDiff = each Duration.days([date1]-[date2])
but there is no function for month difference.