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.
Hello,
I currently am trying to get YTD Monthly Headcount AVG, as well as, Monthly HC Avg for the previous 2 months. However, my monthly HC is calculated by this formula:
@Anonymous , Not very clear. But Take YTD of headcount and divide my month year distinct count
YTD Sales = divide(CALCULATE([Headcount],DATESYTD('Date'[Date])),CALCULATE(distinctcount('Date'[Month Year]),DATESYTD('Date'[Date])))
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
Appreciate your Kudos.
Hi @amitchandak,
Thank you for your solution! So it's almost what I need. I have attached a photo of my graph currently. The data label numbers are the ending headcount for each month, so I need the average for YTD for each month. So for like August it would add up all of the ending headcounts for the previous months and then divide by 8. Thank you for your help!
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 |
---|---|
48 | |
24 | |
20 | |
14 | |
12 |
User | Count |
---|---|
57 | |
49 | |
43 | |
19 | |
18 |