Hello All,
In the below table I want filter out (remove) the values containing “900” using filter datatable.
Please help with the solution,
Hello All,
In the below table I want filter out (remove) the values containing “900” using filter datatable.
Please help with the solution,
Working with DataTables:
OR
LINQ:
Assign Activity:
dtFiltered =
dtData.AsEnumerable.Where(Function (x) Not x("Number").toString.Trim.EndsWith("900")).CopyToDataTable
Handling empty results
EDITED: fixed with NOT from keeping to removing
Hi @Yugal_Raju
Hi @Yugal_Raju
→ Read Range Workbook
Output-> dt
→ Use below syntax in Assign:
dt_Output = (From row In dt.AsEnumerable()
Where Not row.ItemArray.Any(Function(item) item.ToString().Contains("900"))
Select row).CopyToDataTable()
dt_Output is of DataType System.Data.DataTable
→ Write Range Workbook dt_Output
Hope it helps!!
Hi @Yugal_Raju
→ Read Range Workbook
Output-> dt
→ Filter DataTable
dt_Output
Hope it helps!!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.