I am trying to make a query on Google Sheets and sort the results according to the highest values on column C. The range I am doing the query on is $A$6:$O
.
I have tried to do it like this:
=SORT(QUERY(($A$6:$O), "Select A, B, C, D,E,F,G,H,I group by C"))
However, I am always getting an error saying
#VALUE: Unable to parse query string for Function QUERY parameter 2: CANNOT_GROUP_WITHOUT_AGG
Do you have any idea about how I can make this work?