The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello Power Bi community
I have this challenge to find average compensation per month, and the averaging of each month only based on the current year
(This is just a sum dax. [Total Compensation] = SUM(amount))
Example, for 2021:
first 2 month has 1 average based of the first 2 month
(867+991)/2 = 929
First 3 month:
(867+991+919)/3 = 925
etc.
Hi @Anonymous .
If your date column contains data in MM-YYYY format, then I would recommend you to first create a Month calculated column using =TEXT([Date Column],”MM”) and then use the below DAX,
Avg. Compensation=
AVERAGEX(VALUES(DIM_DATE[MM-YYYY]),
[Total Compensation])
Else you can convert the same column in MM format and perform the DAX.
Regards,
Sanket Bhagwat.
If this post helps, then please consider iit as Accept as the solution.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
19 | |
18 | |
17 | |
12 |
User | Count |
---|---|
36 | |
34 | |
20 | |
19 | |
14 |