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.
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])
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
102 | |
53 | |
21 | |
12 | |
12 |