Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi!
I trying to calculate a Average Headcount (basically is the sum of Monthly HeadCount / number of months). The Monthly HeadCount is the measure that calculates a total value for the month.
for example:
SET OUT NOV DEZ JAN
Monthly HeadCount 400 430 450 445 480
Average Headcount 400 415 427 431 441
does anyone have any idea how to calculate this measure?
Thanks!
Solved! Go to Solution.
Hi @guilherme_gq,
I would suggest you create a date table if you don't have one. Please check out the demo in the attachment.
Measure = CALCULATE ( AVERAGEX ( SUMMARIZE ( 'Table', 'Calendar'[MonthNum], "v", [Monthly HeadCount] ), [v] ), FILTER ( ALL ( 'Calendar' ), 'Calendar'[Date] <= MAX ( 'Calendar'[Date] ) && 'Calendar'[Date] <= MAX ( 'Table'[Date] ) ) )
Best Regards,
Dale
Hi @guilherme_gq,
Could you please mark the proper answer as a solution?
Best Regards,
Dale
Hi @guilherme_gq,
Could you please mark the proper answer as a solution?
Best Regards,
Dale
Hi @guilherme_gq,
I would suggest you create a date table if you don't have one. Please check out the demo in the attachment.
Measure = CALCULATE ( AVERAGEX ( SUMMARIZE ( 'Table', 'Calendar'[MonthNum], "v", [Monthly HeadCount] ), [v] ), FILTER ( ALL ( 'Calendar' ), 'Calendar'[Date] <= MAX ( 'Calendar'[Date] ) && 'Calendar'[Date] <= MAX ( 'Table'[Date] ) ) )
Best Regards,
Dale
Thanks, man!!!
that worked!!!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
145 | |
87 | |
66 | |
52 | |
45 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |