Hi, my column value is date. I am filtering the rows by date. but not working
input1.select(“convert([Provision Date], ‘System.String’) like ‘April’”).length > 0
Pls help.
Thank you xoxo
Hi, my column value is date. I am filtering the rows by date. but not working
input1.select(“convert([Provision Date], ‘System.String’) like ‘April’”).length > 0
Pls help.
Thank you xoxo
If you want to filter only April, you can use this.
input1.select(“[Provision Date] like ‘%Apr%’”).length > 0
Then Convert and filter as you did before Only change is % and Apr
input1.select(“convert([Provision Date], ‘System.String’) like ‘%Apr%’”).length > 0
Hi vivek, it doesn’t give me errors but it is not working. It is going to the else condition when it is suppose to go to then condition. Refer to above for the excel file
Then give “Not” operator on your if condition.
not input1.select(“convert([Provision Date], ‘System.String’) like ‘ April ’”).length > 0
haha I can’t do that since I have to use that to filter rows in assign
Use a writeline and check the output of input1.select(“convert([Provision Date], ‘System.String’) like ‘ April ’”).length. To ensure the code is correct
@sangasangasanga please go through this thread, it may help
Thanks,
Pooja
You need to add .tostring
input1.select(“convert([Provision Date], ‘System.String’) like ‘%Apr%’”).length.tostring
hI, I tried, pls help
Main.xaml (14.6 KB)
Month Sep 2018_v1.0.xlsx (30.9 KB)
Hi, thanks for your recommendation but the date format is different, I dont think will work.
Even though it appears like this
I think the format is this
I don’t know which format RPA is looking at
@sangasangasanga first you need to convert the date format from 2-Apr-18 to 2/4/18.
@sangasangasanga Check the below workflow, it is working fine, i have just created workflow for filtering date.
Main (1).xaml (12.5 KB)
check the output got in sheet2.
MND_FFE Monthly Report for Service Month Sep 2018_v1.0.xlsx (31.4 KB)
Hi @sangasangasanga,