ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. 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

Creating a new flag from adding prior row value

wahmed
6 - Meteoroid

Hello everyone, first of all,  I apologize if the sentencing of my question is not correct. 

 

I am working on a dataset where I need to create a new flag variable based on the prior row value of the same variable. Please find attached the sample dataset for your reference along with the desired output shown.

3 REPLIES 3
MarqueeCrew
20 - Arcturus
20 - Arcturus

Your example uses the last record value (not prior).  In this exercise I calculate the first and last coupon value for the new variable.  This should get you going...

 

Thanks,

 

Mark

 

Capture.PNG

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
wahmed
6 - Meteoroid

Thank Marquee,

 

This was very helpful

MarqueeCrew
20 - Arcturus
20 - Arcturus
You're welcome. We're here to help.
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels
Top Solution Authors