I have to add the values of some fields that are in different rows, I must do the sum only if certain criteria that depend on other columns are met, I wanted to use the Excel function (SUMIFS) but I don’t know how to do it from UiPath or what code to use in VB.NET.
(From row In dt.AsEnumerable()
Group row By Task = row.Field(Of Object)("Task"), Login = row.Field(Of String)("Login") Into Group
Select dt.Clone().Rows.Add(Task, Group.Sum(Function(x) Convert.ToDouble(x.Field(Of Object)("Hours"))), Login)).CopyToDataTable()