Good day. can someone help me to achieve on the below output.. I hav a table and I need to pick the row corresponding to the max. value of another column in the same table.
input:
name | subject | percentage |
alex | english | 60 |
maths | 70 | |
science | 80 | |
richard | english | 55 |
history | 86 | |
geography | 90 |
output:
alex | science | 80 |
richard | geography | 90 |
Solved! Go to Solution.
So first we need to get the data in a proper structure. I have made a name column populated for all the rows. Afterwards, we need to sort the percentages from the highest to lowest and use the sample function to get the desired results:
The desired output:
Please mark it as a solution if this was helpful for you.
Good Luck!
@SrinivasanSugumaran
A solution that a bit different with @Emil_Kos .
thanks qiu
thanks emil
@SrinivasanSugumaran
Thank you for the mark aslo. Have a nice day!
Wondering if anyone knows how to deal with ties in this scenario. Can you get Alteryx to return multiple rows if there are ties?