How group by var variables

Did you find any solution to this?