Additional Column Values of Group By Result

I have a numeric table and want to find the maximum value of column “RESULT” and the corresponding value in column “CONTEXT” for each unique value in Column “PARAM”. To put this very clear: The CONTEXT value i want belongs to the same row position as the maximum RESULT value that was extracted.

I tried this with a “Group By” node using “manual aggregation” method, which does the job except of the option of extracting the CONTEXT values. Unfortunately the Group By node resets the RowID so i can’t do the job afterwards by using the ID.

Any tips and hints are appreciated. Even a reasoning why this is not included as an default option of the Group By node would be very insightful for me.

PS: I do not want to solve this problem with a Python or other generic nodes since this is a very simple problem.

Thanks in advance

Chris