Alteryx Designer Desktop Discussions

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

To return TRUE value if customer ID matches in leading and next row

BJSOON
8 - Asteroid

Hi, I am trying to create a new column whereby it returns TRUE value if Customer ID in the leading and next row match.  As an example:

 

Repeat Customer (new column)Customer ID
TRUE123
FALSE123
FALSE789
TRUE456
FALSE456

 

Thank you in advance! 

2 REPLIES 2
LordNeilLord
15 - Aurora

Hey @BJSOON 

 

Multirow formula is your friend here!

 

It will be something like:

 

[Repeat Customer] = [Row+1:Repeat Customer]

JulioMO
9 - Comet

Hi @BJSOON ,

 

The tool you need to use is Multi-Row Formula. 

Capture.JPG

However, there are one tricky thing. In order to get a True/False, make sure you select "Bool" in the confiuration window. Additionally, I show you the expression I use to create the new column:

Capture1.JPG

 

The output is: 

Capture2.JPG

 

I attach the workflow.

 

Regards!

 

Labels