Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Measure: identify unique rows before sum is calculated

Hi everyone, hope you all are doing well. I am looking for a measure for a pivot table. Data records with identical entries in certain columns (here: city and group_id) are to be identified and outp...
  • onurbmiguel_'s avatar
    4 years ago

    Hello MrRabbitTrick

     

    try this measure: 

     

    Measure = 
    var _temp = 
        SUMMARIZE(
            'Table',
            'Table'[City],
            'Table'[group_id],
            "@total",MAX('Table'[group_members])
        )
    
    return 
    SUMX(_temp,[@total])

     

    Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! ;-
    Best Regards
    BC