Alteryx Designer Desktop Discussions

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

Label Unique values containing at least one negative.

fordfold
6 - Meteoroid

Hi

Am trying to write a workflow that identifies where we have a matching credit and debit in a spreadsheet.

It has to pick out where the values in three columns match and then Invoice amount adds up to zero (so one line -100 the other would be 100). But there may also be a third line of 100 so it will call out all three and then the user can check manually.

Have used the Summarize tool to turn turning the negatives to positive then but that also calls out rows that have no negative.

So either need a way of only selecting groups of rows that contain a negative or a better way all together.

Hope that makes sense, as always i'm sure there's a simple way of doing it but is escaping me!

 

DateAmountCost CentreAccountNEW Amount

Current

RESULT

RESULT NEEDED
24/10/201828.00SZ400ASD400FB28YesNO
24/10/201828.00SZ400ASD400FB28YesNO
15/07/2018-2033.62SZ400ASD400FB2033.62YesYes
15/07/20182033.62SZ400ASD400FB2033.62YesYes
15/07/20182033.62SZ400ASD400FB2033.62YesYes
15/07/20182075.25SZ400ASD400FB2075.25YesYes
15/07/2018-2075.25SZ400ASD400FB2075.25YesYes
02/10/201828.88SZ400ASD400FB30NoNo
02/10/20181411.12A00444ASD400FB40NoNo
02/10/201828.88SZ400ASD500SZ40NoNo
02/10/20181411.12A00444ASD500SZ40NoNo

 

2 REPLIES 2
BrandonB
Alteryx
Alteryx

What about something like this? Use a filter tool to split the amounts into positive and negative streams, then use a formula on the negatives to turn them positive, then use a join tool because the amounts can now be matched up along any other fields that you want to consider. 

 

join check.png

fordfold
6 - Meteoroid

Thanks, that's the missing piece I was looking for.

 

Used the filter and join as you suggested to pull out the non-contra rows. 

Then put in another join from the original dataset and the join to pull out just the contra rows.

This mean I am not losing any data.

Labels