Sum of distinct document fields

I have many documents with distinct field buildId (containing duplicates), common field buildType and a filed duration. How do I calculate a sum of durations for distinct documents in the sense of buildId with matching common field?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.