In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

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
Top Solution Authors