Average value for a row considering page filter

Posted new thread for performance issue: Performance issue when calculating Max with filter and descendants