The {2} expression for the {0} '{1}' uses both row and column scopes or scopes from two different data axes in the same aggregate ...

The {2} expression for the {0} '{1}' uses both row and column scopes or scopes from two different data axes in the same aggregate expression.  All nested aggregate functions must specify a named scope along the same data axis as the scope of the containing aggregate.