Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Status Descending and Ascending based on rows

Ultralightbeam
8 - Asteroid

Hello guys, I want to determine if the recent week's rate is bigger than the previous week  basedd from multiple columns

WeekEndingNameRate
2021-01-22James3
2021-02-05James4
2021-01-22Peter3
2021-02-05Peter4
2021-01-22John1
2021-02-05John0
2021-01-22

Mark

3
2021-02-05Mark2

 

Desired Output

WeekEndingNameRateStatus
2021-01-22James3Ascending
2021-02-05James4Ascending
2021-01-22Peter3Ascending
2021-02-05Peter4Ascending
2021-01-22John1Descending
2021-02-05John0Descending
2021-01-22

Mark

3Descending
2021-02-05Mark2Descending
2 REPLIES 2
RolandSchubert
16 - Nebula
16 - Nebula

Hi @Ultralightbeam ,

 

you could use a Multi-Row Formula to compare week and previous week and set status accordingly. The result could be joined to your data.

2021-02-18_08-58-51.jpg

 

I've attached a sample workflow. This works for 2 weeks in data only, if your input data contains more than 2 weeks, a Filter would be needed.

 

Let me know if it works for you.

 

Best

 

Roland 

messi007
15 - Aurora
15 - Aurora

@Ultralightbeam,

 

Please see bleow:

 

messi007_0-1613635381129.png

Attached the workflow,

 

Hope this helps!

Regards

Labels