Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi All,
I'm looking to create a measure that counts the number of days a worker has worked in a period. This would be easy enough but the data is set up so that if a worker does enough hours to get overtime, there will be a new line for each over time rate as below:
| Worker | Date | Rate | Hours |
| Tom | 23/06/2022 | 1.5x | 1 |
| Tom | 23/06/2022 | 1x | 4 |
| John | 23/06/2022 | 1x | 8 |
| John | 23/06/2022 | 1.5x | 2 |
| John | 21/06/2022 | 1x | 6 |
| John | 22/06/2022 | 1x | 7 |
In this example Tom would have worked 1 day and John 3 days.
The end goal is working out the average number of days worked over a period, so in this example the average days worked would be 2 days. We could then track this over the entire workforce in a line graph for example.
Is this possible in DAX?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 58 | |
| 45 | |
| 42 | |
| 21 | |
| 18 |