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 dear community, I come to you so you can help me with this DAX calculation.
I need a Calculated Column that shows me:
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.
Solved! Go to Solution.
@Syndicate_Admin
Please create the following measure:
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
@Syndicate_Admin
Please create the following measure:
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
@Syndicate_Admin , Try a measure with date table, that would be better
Rolling 6= CALCULATE(Average(Table[compensation]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-6,MONTH))
or
Rolling 6= CALCULATE(AverageX(values('Date'[Month year]),calculate(sum(Table[compensation]))),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-6,MONTH))
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 |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |