We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Check Row by Row

BRRLL99
11 - Bolide

I have following dataset 

 

Input :

 

NAAMTBrackets
CA1400.001400.00
CA-1400.00(1400.00)
41400.001400.00

 

Expected Output:
Rules:
1. positive and Negative Same Amount should be matched

2. String and number should be Matched, string and string should not be matched, same with number
in this example string is CA it be can be anything NA, RS etc same with number

 

NAAMTBracketsmatch
CA1400.001400.00 
CA-1400.00(1400.00)M
041400.001400.00M
14 REPLIES 14
RaphaelSilva
9 - Comet

Sorry mate, I don't understand your ruling.
What is driving the new column is column NA?
When you say negative values shoould be the same you want to change (1400) to -1400?
Why first record is not a Match? Values Match

BRRLL99
11 - Bolide

Positive same amount should be setoff with same negative amount

 

Plus other condition is that NA column should have one string and other number to setoff

 

CA-1400.00M
41400.00M

 

 

 

RaphaelSilva
9 - Comet

Okay, I think I got the ask
See if the solution is what you were looking for, I used multi-row formula to find the Matches, used it twice to validate and flag both instances.

BRRLL99
11 - Bolide

can we create ABS and Tile columns, because in my original data set can be mixed

 

NAAMTBracketsABSString/NumberTile
CA1400.001400.001400String1
4-1400.00(1400.00)1400String1
CA1400.001400.001400Number1

 

in the given data it is 

 

CA
CA
4

 

It can be 

CA
4
CA

 

 

RaphaelSilva
9 - Comet

What is your patterns regarding which AMT values can be positive and negative?
Is it expect to match different data with the same AMT value?

The workflow below use ABS values to sort the AMTs, then make sure strings appears first and lastly make negative AMTs shows last, so it can map with the "Numbers"
But I don't know what other rules you have in your data

** Please like the replies that helped you and mark as solution once it solves yours problem

Labels
Top Solution Authors