Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
25 | |
12 | |
9 | |
9 | |
9 |
User | Count |
---|---|
21 | |
14 | |
14 | |
13 | |
13 |