Adding GROUP BY in AX4

Good Day Guys,

I have a problem, i need to add a group by in a view that im creating… how can i go about doing this?. please help.

regards

Max