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.

Multi row formula not working

Yuri24
8 - Asteroid
 

I am trying to solve for a condition where for a given partition of rows if number in row1 and row2 has a matching 6 or more digit sequence then mark the second row as 0 in a new field.

 

I used multi row formula as shown below:

 

 

If [Name] = [Row-1:Name] and
(REGEX_Match([Number], '.*(\d{6}).*') = REGEX_Match([Row-1:Number], '.*(\d{6}).*'))
then
0
Else
1
Endif

 

Sample input

NamePhone
Oscar234567890
Oscar345678901
Zoro1122333444
Zoro9988776600

 

expected output:

NamePhoneresult
Oscar2345678901
Oscar3456789010
Zoro11223334441
Zoro99887766001

 

but I am getting 

NamePhoneresult
Oscar2345678900
Oscar3456789011
Zoro11223334440
Zoro99887766001
 
Appreciate any solution. TIA
 
10 REPLIES 10
PangHC
13 - Pulsar

@Yuri24 because i count only duplication on any 6th digit. so if they have any 6th digit is same, then it will be count as match.

 

but fixed is simple, i will count unique of recordID, to ensure duplicate only happen in different rows.

Screenshot 2023-10-16 094317.png

 

 

 

 

Labels
Top Solution Authors