Alteryx Designer Desktop Discussions

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

help with multirow formula

Ultralightbeam
8 - Asteroid

hello guys, I just want to determine if the student got low grade or high grade every week

 

IIF([Name] = [Row+1:Name]  AND [Grade.Rate]>[Row+1:Grade.Rate] , 'Grade went low', null())

 

DateNameGradePreferred result from the multi-row formula above
2021-02-05Andre3Grade went low
2021-01-22Andre5Grade went low
2021-02-05Test3Grade went low
2021-01-22Test5Grade went low
2021-02-05Test53Grade went low
2021-01-22Test56Grade went low
2021-02-05Test66Grade went high
2021-01-22Test63Grade went high

 

 

3 REPLIES 3
Assaf_m
11 - Bolide

Hi @Ultralightbeam ,

 

I would suggest using the Cross Tab tool, 

 

check the attached solution and let me know if it works for you.

 

Assaf_m_0-1614066681745.png

 

messi007
15 - Aurora
15 - Aurora

@Ultralightbeam,

 

Please see below how you can do it:

 

messi007_0-1614069016685.png

Attached the workflow,

 

Hope this helps!

Regards

SeanAdams
17 - Castor
17 - Castor

In the multirow tool - you don't need to check the name.

Instead, set the grouping in the tool; and set the "value for rows that don't exist"

 

Then you can write a formula like:

if isnull([Row-1: Grade.Rate]) //meaning this is the first time 

     then "First time"

elseif [Row-1: Grade.Rate] < [Grade.Rate]

     then "Grade increased"

elseif [Row-1: Grade.Rate] > [Grade.Rate]

      then "Grade decreased"

else

      "Grade same or other condition"

endif

 
 
Labels