Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Flag every time a value changes in a column

bmittal11
6 - Meteoroid

INPUT:

 

bmittal11_0-1660923878542.png

Desired OUTPUT:

bmittal11_1-1660923916466.png

 

I am already using a multi- row formula to flag this. But I am having problems with the result  I am getting, Instead of the "Desired OUTPUT" mentioned above  I am getting this. As you can see the formula works for some vales in the "DecodedValue" column. I don't know why it doesn't work for each change in value.

wrong output.PNG

 

 

 

 

 

 

Multi-row formula being used: 

formula.PNG

 

 
 

 

3 REPLIES 3
MarioAA
6 - Meteoroid

Hello!

 

I think the formula should be just if [Row-1:DecodedValue] = [DecodedValue] THEN 1 ELSE 0 ENDIF

 

Try this

 

Mario

 

 

CathyS_Slalom
9 - Comet

Hi @bmittal11, you can use the formula below to get the desired output.

 

IF [DecodedValue] = [Row-1:DecodedValue] OR IsEmpty([Row-1:DecodedValue])
THEN 1
ELSE 0
ENDIF

 

CathyS_Slalom_0-1660925659048.png

 

 

Emmanuel_G
13 - Pulsar

Hi @MarioAA ,

 

Find attached one way to do it easily.

 

Let me know if there is any concern.

 

Cheers !

 

Emmanuel_G_0-1661171223998.png

 

Labels