I want to Group By Code, and Sum on Hours, resulting in a data table something like this:
Code,SumH
1,08:00:00
9,07:00:00
2,02:00:00
With a SQL DBMS approach, this would be easy as pie, but perhaps it is not possible to do in an easy manner with UIPath? Most of the solutions I find are quite complicated…
If you can help me, I would be extremely grateful!! This is some example data that you requested (a csv that I had to zip in order to be able to upload on this forum):
the solution makes use of timespan DataType for the hour/minute/second Addition
the group by was realized by iterating over the different groups (first for each)
and processing the group rows (second for each)
Kindly note:
rewire the path to csv according to your environment
ID value has been shifted to INT (removing leading zeros from the string)
output datatable was included for demo purpose and can be removed
Let me know your feedback and mark the solving post as solution. So others can benefit from it.