Oracle Solution for Error ora-36168

Solution for Oracle Error ORA-36168

ORA-36168: (XSMXAGGR10) COUNTVAR variable workspace object

must have the same dimensionality as workspace object

What triggered the Error:

The user specified a COUNTVAR variable which is missing at least one dimension of the aggregation variable

What should we do to fix it:

Specify a COUNTVAR variable which has at least as many base dimensions as the aggregation variable