These are the rules for COMPUTE clauses:
For example, if the ORDER BY clause is:
order by a, b, c
The COMPUTE BY clause can be any of these:
compute row_aggregate (column_name) by a, b, c compute row_aggregate (column_name) by a, b compute row_aggregate (column_name) by a
The COMPUTE BY clause cannot be any of these:
compute row_aggregate (column_name) by b, c compute row_aggregate (column_name) by a, c compute row_aggregate (column_name) by c