Forum Discussion
Combining multiple columns to add time together
- 2 years ago
ok, create a new column. and add this code
each Duration.FromText([Rate]) / #duration(0, 0, 1, 0))This converts the hours into minutes. Delete the Rate column. Highlight the date column, go to the Ribbion > Home > Group by Operation is Sum and choose the new minutes column to do the sum.
This will group all the minutes in to one day. You can then divide by 60 to get the hours worked.
Thanks
Joe
Hi Justas4478
If you want to view the data correctly and do measures on the data, then you need to format your data differently.
Convert the date column from datetime to date. Highlight all the Rate columns and right click and unpivot all columns. You will be left with the Date and a new Attribute and Values column. Change Attribute column name to RateType and Values to Rate. Filter out a null or blank values from the Rate column.
When you load the data into the report, you can make various measures because the data is correctly formatted.
Thanks
Joe
If this post helps, then please Accept it as the solution
- Justas44782 years agoPost Prodigy
- JoeBarry2 years agoSolution Sage
Should the result be 9:00 here?
- Justas44782 years agoPost Prodigy
JoeBarry If we dont look at it as different rates then yes result would be 09:00
Since 01:00 is overtime and still needs to be included in total time for the day.