Alteryx Designer Desktop Discussions

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

Multi Row Formula

Jerin_jaj
7 - Meteor

I want to update an existing flag column based on its active row value. 

 

if flag=1 then [row-1:flag]=1 else [flag] endif. 

 

When i am trying this, all values are turning 0. 

Please Help

4 REPLIES 4
LordNeilLord
15 - Aurora

Hey @Jerin_jaj 

 

By saying "[row-1:flag]=1" you are actually creating a boolean (true/false) which is why you get 0 as the answer, try modifying to this:

 

if flag=1 then [row-1:flag] else [flag] endif. 

Jerin_jaj
7 - Meteor

 tried the formula but still getting all 0.

LordNeilLord
15 - Aurora

@Jerin_jaj 

 

Can you screen shot or provide your workflow?

Jerin_jaj
7 - Meteor

i tried row+1 instead of row-1 and its working perfectly as required.

if [Row+1:Flag]=1 then 1 else [Flag] endif

Labels