I’m facing an issue with filtering my excel data. I have a excel with 5000+ data every day data will be increasing but the difference is date. Every day data will be increasing with current day date.
Now my scenario is i want to get only yesterday date data. I’m trying to do it with LINQ query i’m unable to get it correctly. Issue is there is 1 empty row in top because of that i’m getting error. I’m attaching my sample excel below can anyone help me on that.
Hi @postwick getting error with that. I’m unable to filter. I think i’m missing something which i’m unable to solve that. As i have 1st row empty and i should not delete that.
@postwick The excel i should not change anything. I need to keep it as actual. I just need to pick the data and filter. If i use row index for Filterdatatable activity it is giving me Null.
If i use column name it is giving Column name is not set or is invalid
@Learner007
If you writeline you dates you may see your problem maybe, when you read your excel, the date format is 05/23/2023 00:00:00
You can Read Range the Excel without headers
Filter Data Table using Column index 2 = Today.AddDays(-1)
Write Range Filtered Data Table
Regards
Hi @michael.zura if use this code it is working but here i’m filtering with row index but in future if they change the row it will cause an issue right. Is there any option that where we can do it with LINQ. I have tried but getting error with linq it is adding some additional headers with LINQ. I’m attaching my flow below. Please have a look.
Hi @ppr . I tried to modify and apply this. I’m unable to make it working as per my requirement. Can you please help me on this. I have attached my Code in above message.
Can anyone help me on this. Any leads how to solve this Using LINQ. I’m able to filter this when i don’t get first row empty. But here my challenge is i should not delete that first empty row.
Hi @ppr This is working fine but it is based on rowindex working. In future if they change row position it may cause an issue right. is there any option where i can use my column name.
you can use the column name, can calculate dynamic the offset and also reset the default col names to custom col names. Here we do not see any technical limitations