Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all,
First time posting so be gentle 🙂
I'm working in PowerBI Desktop and am struggling with a calculation for average headcount.
I have a table that contains staff numbers for every employee over the last 12 months, this is based on a monthly report so there are duplications. As an example, someone who has worked for us all year will appear 12 times as they're on every monthly report. Hope you're with me so far! Our financial year starts in April so our financial quarters are Apr/May/Jun = Q1, Jul/Aug/Sept = Q2 etc etc. What I am trying to do is calculate the average headcount for each quarter.
I've got a calculation that works - to an extent - I've encountered a problem though. It only works when I have a full quarters worth of data. Because I've only got 1 months worth of data for Q4 it's throwing my figures off.
This is the calculation I'm using, I achieved this with a mix of Google, YouTube and luck and like I say it works but falls down if there isn't enough data.
use DISTINCTCOUNT of employees over your time periods.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |