Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have a table with different times for different technicians each day. I would like to calculate the total worked time per day per technician, per week, per month, and per year. What is the correct DAX formula for this? I already have several calculations. The total time per day per technician seems to be correct. However, when I try to display this in a matrix table per week or per month, it doesn't sum up the times. It keeps looking at the first time and the last time per period. Who has a suitable solution?
Example:
Solved! Go to Solution.
Does you column have a time data type?
Time data types have a maximum of 24hrs.
So if you add 23 + 2 = 1 and not 25!
And 8 + 8 + 8 + 8 + 8 = 16 and not 40.
Try using a decimal data type.
Does you column have a time data type?
Time data types have a maximum of 24hrs.
So if you add 23 + 2 = 1 and not 25!
And 8 + 8 + 8 + 8 + 8 = 16 and not 40.
Try using a decimal data type.
To find the first time of the day per technician:
To find the last time of the day per technician:
To find the total working time per day per technician:
Then the ‘Totale tijd min’ provides the total working time in minutes per day. When I place this as a value in a matrix table, I get an incorrect calculation of the total time. Also, when I try to see the total working time per week, I do not get accurate results.
I have a solution.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |