Forum Discussion

cosmicyes's avatar
cosmicyes
Icon for Helper II rankHelper II
4 years ago
Solved

Sum column distinct per another particular column

I am building a report about costumer complaints.     Now I am trying to get the right sum for "Reklamationskosten" (cost). The correct answer is: 113 EUR. The formula should do (in words)...
  • cosmicyes's avatar
    4 years ago

    a very nice guy on Stackoverflow gave me the solution:

    Reklamationskosten Measure (Agg) = 
    SUMX ( 
        SUMMARIZE (
            'Table',
            'Table'[Rekl. ID],
            'Table'[Reklamationskosten Art],
            "Reklamationskosten", MAX ( 'Table'[Reklamationskosten] )
        ),
        [Reklamationskosten]
    )