Hi,
Depends on your data, but just emit transaction id from set as key and
his amount as value with map and _sum these values with reduce
function. If you need totals for all set, then emit [set_id, item_id]
key and group results by specific level.
--
,,,^..^,,,