The GroupBy() function not only selects a value from duplicate values, but also returns a node set with additional parameters and child nodes that can be queried in the mapping.
GroupBy('Node', 'Attribut')
GroupBy('Node/SubNode', 'Attribut')
GroupBy('Pricat/Position', 'EAN')
Note:: Many more examples can be found under GroupByExSorted.