Cannot nest aggregate functions (Error 1844)

Nesting of the aggregate functions MIN( ), MAX( ), and/or the CALCULATE command sub functions: AVG( ), CNT( ), MAX( ), MIN( ), NPV( ), STD( ), SUM( ), or VAR( ), is not permitted.