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.

Need to Update Active Row and Row -1

patz007
5 - Atom

Hi Experts,

 

I wanted to update a field for two rows. Like

 

IF [Col2] = 0 THEN [Test] = 1 AND [Row-1:Test] = 1 ELSE 0 ENDIF

 

Can I update the formula like this it is giving me an error?

 

Thanks 

 

I really appreciate the help and support.

5 REPLIES 5
DataNath
17 - Castor
17 - Castor

You can’t define the current row for your new field, only +/-. For the example you’ve provided there you should just need to take out the ‘[Test] =‘, so:

 

if [Col2] = 0 then 1 and [Row-1: Test] = 1 endif

messi007
15 - Aurora
15 - Aurora

@patz007,

 

Please see below :

messi007_0-1651481984387.png

 

Attached the workflow,

Regards,

binuacs
21 - Polaris
patz007
5 - Atom

@messi007,

 

I tried your solution but it is not working as accepted. Please review the screenshot below.

 

patz007_0-1651504261070.png

Please let me know how I can achieve this.

patz007
5 - Atom

@DataNAth

 

I tried your solution too but it is giving me all zeros.

 

patz007_0-1651504541791.png

Please let me know if there is anything else I can do.

 

I really appreciate the help and support.

Labels