In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

Formula to be applied on rows to compare the data

Lakshmikanth_2021
アステロイド

I have input data:

 

Based on the ranks scored on each subject, I need to rank them, for example, Student 3 score highest on Maths, he gets R1, Student 2 gets R2 and Student 3 gets R3 and the same applies for rest of the 3 subjects..

 

Basically, I need to apply the if statement on each of the rows data and get the output as attached. 

 

 

2件の返信2
Luke_C
17 - Castor
17 - Castor

Hi @Lakshmikanth_2021 

 

No if statements needed, this is just a sorting and labeling exercise:

 

  1. Transpose columns
  2. Sort by subject and score
  3. Use tile tool to assign ranking
  4. Append 'R' to rank
  5. Crosstab back and organize data

 

Luke_C_0-1659462073235.png

 

 

Emmanuel_G
パルサー

Hi @Lakshmikanth_2021 ,

 

An easier way to achieve to output

Emmanuel_G_0-1659466004600.png

 

ラベル
トップのソリューション投稿者