Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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!
Solved! Go to Solution.
Another simple method:
Date.Year([EndDate]) * 12 + Date.Month([EndDate]) - Date.Year([StartDate]) * 12 - Date.Month([StartDate])