qbDS.addSelectionField(fieldId , SelectionField::Sum )
qbDS.orderMode(OrderMode::GroupBy) qbDS.addSortField(fieldId);