Oracle Error ORA-32641: invalid expression in MODEL rule ORDER BY clause

Oracle Error Message

ORA-32641: invalid expression in MODEL rule ORDER BY clause

Reason for the Error

An invalid expression was specified in the MODEL rule ORDER BY clause where only expressions of dimension and measure columns and reference MODEL cell references are allowed

Solution

Modify the order by clause in the MODEL rule.