Hi, I am trying to use rule engine to filter rows that has a certain date
Filter all rows for plans 9015 and 90109 and Date = 17Jan2023
I ahev used Date&TimetoString node to convert this date to string
I am trying to use rule engine
$PLAN_N$ IN (90105,90109) AND $PAY_D$ =’ 2023-07-13’ => TRUE
I am trying to exclude a set of rows that belong to plan 90105 and 90109 and have date =17Jan2023’
Please help
Try replacing AND with &&
I want to exclude a set of rows that have Date =‘17-Jan-2023’ in plan 9015 and 90109
Can you post your workflow?
rfeigel
January 26, 2024, 12:42am
7
There may be more elegant ways, but this works.
2 Likes
ipazin
January 26, 2024, 7:26am
8
Hello @chaithuj and @rfeigel ,
there is Rule-based Row Filter node that should help in these cases.
Br,
Ivan
1 Like
takbb
January 26, 2024, 7:34am
9
Hi @chaithuj , your rule was close, but you need double quotes rather than single quotes.
As @ipazin mentions, row filter/splitter and rule engine are combined together in the Rule Based Row Filter and Rule Based Row Splitter nodes.
You’d then have it return FALSE or TRUE
$PLAN_N$ IN (90105,90109) AND $PAY_D$ = "2023-07-13" => FALSE
TRUE => TRUE
which would remove the stated rows, if set to exclude FALSE.
1 Like
Hi @chaithuj ,
for additional info
using row splitter allows you to send the true mach to the second port and you use the first port or vice versa. The advantage of using the row splitter is you can track if your filter works as expected.
BR
2 Likes
rfeigel
January 26, 2024, 4:24pm
11
I’ve uploaded a new workflow which has the three different approaches discussed in this thread plus the new Row Filter (labs).
3 Likes
system
Closed
February 7, 2024, 8:03pm
12
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.