Edit filter day

I want edit filter from 2 days to read value in input dialog.
Please guide me about it.

image

Hi @fairymemay

I am not cleared with ur point

Can u share the screenshot of input and output of datatable u need

@NIVED_NAMBIAR

Input
image

I want to filter day in column E by user input value day

image

Example if I key input dialog 4.
I want to send value=4 replace 2 in assign dtOutput.

Please guide me about it.

Can you send the sample excel file? @fairymemay

Hi @fairymemay

Please find the attached xaml file for your reference. Feel free to reach me if you have any doubt. Thanks.
Main.xaml (8.0 KB)

Hi @fairymemay
Try using this buddy

dt1 = dt1.AsEnumerable().Where(Function(row) row(4).ToString.Contains(day_var+“days”)).CopyToDataTable

where day_var is the input u are giving

Mark it as solution if it resolves your query

Regards
Nived N
Happy Automation

what he is asking nived can you explain

@fairymemay needed to filter the column E with the dynamic value that user inputs

Hope u got the idea @copy_writes

1 Like

@NIVED_NAMBIAR I try follow your suggest.
But If I day_var = 2
dt1 filter 4days , 54days and 84days
I want output 4days only.

image

Please guide me about it.

dt1 = dt1.AsEnumerable().Where(Function(row) row(4).ToString.Equals(day_var+“days”)).CopyToDataTable Try this @fairymemay

I acccidently added the contains instead of Equals

Check this workflow sample workflow.zip (2.0 MB)

Regards
Nived N
Happy Automation