Forum Discussion

marijane's avatar
marijane
Icon for Helper I rankHelper I
5 years ago
Solved

Sum only once per distinct id

Hi everyone,   I want to sum hours only once per id using dax. For example, in this table above the expected result of the measure will be 89 : 27(id1) + 30(id2) +30(id3) + 2(id4) The summarize f...
  • amitchandak's avatar
    5 years ago

    marijane , summarize or values are the options you can use

    Try values with sumx

     

    sumx(Values(Table[ID]), calculate(max(Table[Hour])))