Im using filter data table (filter wizard) to remove rows including the data of the present day (now.string) of the present month.
The point is: when the month starts,it removes not only the row with the current date, but also, all the headers (i’m putting add headers and also keep columns, in filter wizard , but same result it removes the headers too)
Can someone help and or explaiin another way to keep headers from removing all the data values of the rows in an excel?
Sure, there is an example. As i said, im using filter data, but i dont want to remove headers. The point is the filter removes everything if my filter has the condition to remove the values from the current day and that day is the first of the current month.
Thank you.
Pd: how can i use those select and linq statements in that?
@Phito
Use an Assign Activity
to: YourFilteredDataTableVariable
Value: YourDataTableVariable.AsEnumerable.Where(function (row) not row(0).ToString.Trim.Equals(DateTime.Now.toString(“dd-MM-yyyy”))).CopyToDataTable
In Case Of all rows are filtered out, then an exception will be thrown.
I Prepared this for you on LINQ to be faster, later I will do a check on filtertable to see if I can replicate