Alteryx Designer Desktop Discussions

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

Grouping and Filtering Question

iudogie
6 - Meteoroid

 

Let's say I have a system in which a single payment ID may be associated with multiple documents. If the payment ID is only associated with one document, I just want it to flow through with the associated status. If the payment ID is associated with multiple documents, I want to use the following logic:

 

If a payment ID has multiple documents:

  • Check the statuses of all the documents
    • If any of the statuses are not REJECTED or DUPLICATE, use that status
    • If the statuses are all REJECTED, use REJECTED
    • If the statuses are all DUPLICATE, use DUPLICATE
    • If the statuses are a mixture of REJECTED or DUPLICATE, use REJECTED status

Here is the sample data:

 

Payment ID

Document ID

Status

Employee Name

123

7410

Paid

Lael Odonnell

123

14523

Rejected

Lael Odonnell

789

45593

In Transit

Tanek Cardenas

676

10390

Expired

Deborah Lester

456

36213

Duplicate

Melyssa Frost

456

62231

Rejected

Melyssa Frost

 

 

 

Here is how the data would look after the transformation:

 

Payment ID

Document ID

Status

Employee Name

123

7410

Paid

Lael Odonnell

789

45593

In Transit

Tanek Cardenas

676

10390

Expired

Deborah Lester

456

62231

Rejected

Melyssa Frost

 

 

Thanks for any help.

3 REPLIES 3
BrandonB
Alteryx
Alteryx

I think that this workflow should do the trick for you. Workflow is attached. 

 

Logic Solution.png

Jean-Balteryx
16 - Nebula
16 - Nebula

Hi @iudogie ,

 

Here is an alternative solution !

 

Capture d’écran 2021-08-02 à 22.42.10.png

brandon_bunney
8 - Asteroid

@iudogie 

 

Attached is a workflow that runs through the various criteria options in order to return a unique & correct result. Of course, since the text input only featured 6 rows, the workflow may need adjustment when additional rows are ran through it, but hopefully this is a satisfactory starting point. 

Labels