Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Need Help with Regex Match Filter on 2 fields

pvara
8 - Asteroid

My Sample Data Set as Follows

Invoice Number Credit Memo Number
340BVIR0000004571 12345
NOMemoNomemo
6765767612346

 

Regex_Match ([Invoice Number], "^\d\d\d\d.*")

AND

REGEX_Match([Credit Memo Number], "^\d\d\d\d.*")

 

I would like to see the TRUE to look something like this.

 

Invoice Number Credit Memo Number
  12345
6765767612346
20 REPLIES 20
AbhilashR
15 - Aurora
15 - Aurora

Hi @pvara, the Filter tool doesn't allow users to pick and choose the row/column combination in its output. By nature it evaluates at a row-level, and will output all columns for a given row in the TRUE or FALSE outputs.

 

Referring to the image below as an example (sample outputs from my workflow), the filter tool will output the two rows that meet the logic in the Filter tool, after which you will need to introduce a Formula tool to convert the alphanumeric Invoice Number (340BVIR0000004571) to null.

After Filter:

AbhilashR_0-1588634929747.png

Filter + Formula:

Capture.PNG

If this isn't what you are looking for, then perhaps @grossal's solution is the only other option I can think of. 

Labels