Hello dear community, I come to you so you can help me with this DAX calculation.
I need a Calculated Column that shows me:
the average of the last 6 months accumulated for each collaborator (in case the collaborator appears > = 6 times in the year);
or in case the collaborator in the period of the current year appears less than 6 months, which shows the average based on the number of months that the collaborator has been in the company in the current period, for example:
Filtered Year: 2021 Current month: May2021 (5) Age of the collaborator to May2021: 3 months (that is, the collaborator appears 3 times until May, if in June he becomes active, the collaborator when we are in June then will appear 4 times, and so on)
Then the average will be = (Sea + Apr + May)/3
Also consider, I already have a calendar table in my Power BI.
Here I have an example sample of what exactly I want (column "Average Last 6 months), you can download the file here:
I also leave the estracto here:
I read them, I hope you can help me as soon as possible. and thank you very much in advance.