Filter datatable based on criterias only based on Branch

Assign Activity:
TableList | DataType: List(Of DataTable) =

(From d in YourInputDT.AsEnumerable
Group d by k= d("Branch").toString.Trim into grp=Group
Select g = grp.CopyToDataTable).toList()

Then loop over TableList and write out each Branch table to Excel

[HowTo] LINQ (VB.Net) Learning Catalogue - Help / Something Else - UiPath Community Forum