Join the Inspire AMA with Joshua Burkhow, March 31-April 4. Ask, share, and connect with the Alteryx community!

Alteryx Designer Desktop Discussions

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

Amount Match

BRRLL99
11 - Bolide

I have following data with 100's of rows

a sample has been attached

 

Input :

 

deal TypeAmountIDPositive/ NegAbs AmountString/Number
CA1001Positive100string
7-1001Negative100number
CA1001Positive100string
AB2002Positive200string
4-2002Negative200number
42002Positive200number
CA-2002Negative200string

 

Expected Output: 

Group By ID, +ve amount should be matched with -ve amount and string/Number should not be same

 

deal TypeAmountIDPositive/ NegAbs AmountString/Numbermatch
CA1001Positive100stringm
7-1001Negative100numberm
CA1001Positive100string 
AB2002Positive200stringm
4-2002Negative200numberm
42002Positive200numberm
CA-2002Negative200stringm
2 REPLIES 2
JBLove
10 - Fireball

@BRRLL99 

 

After your Input Data, use a Filter Tool to separate your Positive  and Negative numbers.  Then use a Join tool to combine the T and F anchors from the Filter tool.  Based on your data I'm assuming you would join on ID and ABS Amount.  Then you can use a filter on the J output anchor of the Join Tool to identify the rows where the True Path's String/Number value does not match the False Path's String/Number.  You can use the join tool to rename the fields and drop any unnecessary fields.

Raj
16 - Nebula

@BRRLL99 
please find the workflow attached
please mark as done if this is solved.

Labels
Top Solution Authors