Group by sort in query tab on user setup

New to AX but I think this is standard. On the form InventOnhandItem if you open the query tab on the user setup you can see in the form query sorting items that are used to group by a certain field. Also there are aggregate sums listed in the fields under the data source. Is it possible to create these same kind of entries on a new form? It would be much easier to drag a sort item in here than to have to type the code. I can’t find a way to do it and was wondering if I am missing something.

Any help appreciated.

Please I need more details of your requirement.

Could You explain clearly…