Eng 3613 complex groupby mv

Waiting for Jenkins.