We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Get the previous row

Ultralightbeam
8 - Asteroid

Hey guys I want to get the previous rating of the same user from the same row

 

Input

NameWeekCurrent Rating
Abegail2022-07-03Good
Abegail2022-06-24Best
Abegail2022-06-10Poor
John2022-06-24Poor
John2022-06-10Best

 

Output

NameWeekCurrent RatingPrevious Week Rate
Abegail2022-07-03GoodBest
Abegail2022-06-24BestPoor
Abegail2022-06-10Poor 
John2022-06-24PoorBest
John2022-06-10Best 
2 REPLIES 2
grazitti_sapna
17 - Castor

Hi @Ultralightbeam, try this.

Use a multi-row formula tool and type the formula. 

if [Name]=[Row+1:Name] then [Row+1:Current Rating] else null() endif

 

 

grazitti_sapna_0-1656481443476.png

 

Hope this helps!

Thanks!

 

Sapna Gupta
flying008
15 - Aurora

Hi, @Ultralightbeam 

 

as your said, the result is next row by Group [Name].   --->  Expression: [Row+1:Current Rating]

 

flying008_0-1656482000000.png

 

Labels
Top Solution Authors