Forum Discussion

jcastr02's avatar
jcastr02
Post Prodigy
5 years ago
Solved

Summing with distinct values

how can i get a sum of all values of three columns (minor, major, critical) but only distinct values based on the ID column.  My data has repeating rows and I can't remove because I'm using other fie...
  • amitchandak's avatar
    5 years ago

    jcastr02 , Create measure like this for all three columns

     

    sumx(summarize(Table,Table[ID], Table[Minor Total]),[Minor Total])

     

    sumx(summarize(Table,Table[ID], Table[Major Total]),[Major Total])

     

    sumx(summarize(Table,Table[ID], Table[Critical Total]),[Critical Total])