Free Trial

Alteryx Designer Desktop Discussions

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

Continuity serial number - Yes or No

Myusrename001
8 - Asteroid

Team,

Based on ref number & TX number - i wanted to determine if the values are continued or not.

please guide me.

 

Thanks in advance... 

 

TX NumberRef numberResult
0385957192-
0385957196No
0385957198No
0385957203No
0386957187-
0386957191No
0386957194Yes
0386957195Yes
0386957196Yes
3 REPLIES 3
Luke_C
17 - Castor
17 - Castor

Hi @Myusrename001 

 

You'll want to use a multi-row formula:

 

  1. Group by TX Number
  2. Set rows that don't exist to NULL
  3. For first row of TX number set to '-' (if previous row is NULL)
  4. Otherwise check if the ref number is +1 from the previous row

 

IF isnull([Row-1:Ref number])
then '-'
elseif [Ref number] = [Row-1:Ref number]+1 
then 'Yes' 
else 'No' 
endif

 

Luke_C_0-1650464525356.png

 

Myusrename001
8 - Asteroid

Thanks so much ! @Luke_C 

flying008
15 - Aurora

Hi, @Myusrename001 

 

just use Multi-Row Formula for you : (need set the option [Values for Rows that don't Exist] to 'Null' )

 

录制_2022_04_21_08_39_49_391.gif

 

Labels
Top Solution Authors