SOLVED
Creating a new flag from adding prior row value
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
wahmed
6 - Meteoroid
‎04-05-2016
04:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
Solved! Go to Solution.
Labels:
- Labels:
- Transformation
3 REPLIES 3
20 - Arcturus
‎04-05-2016
04:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
Alteryx ACE & Top Community Contributor
Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
‎04-05-2016
05:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank Marquee,
This was very helpful
20 - Arcturus
‎04-05-2016
06:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
