Hi,
Grouping can be done via OQL or Via microflow
OQL:
Select Maschine,sum(Arbeitsstunden) from {ModuleName.EntityName} groupby Maschine
Microflow:
Create new list.
Loop though the list (where the ‘Arbeitsstunden’ needs to be grouped)
Using find operation in the new list to find the object which has same ‘Maschine’
If the object is empty, add it to new list
If the object is not empty, add the ‘Arbeitsstunden’ to the existing object
Finally return the new list
After retrieving the list, perform list operation ‘Filter’ to filter the list based on attribute value ‘Maschine’.
After filtering you will get new list, you can do aggregrate list for the new list , select the respective attribute to get sum of that particular attribute values.
When retrieving from database, you can set one or multiple sort criteria (marked in the screenshot). When retrieving via association, you need to sort the list in a list operation as already mentioned by Steffy.