Forum Discussion

casperlow's avatar
casperlow
Icon for Helper I rankHelper I
2 years ago
Solved

Dax Sum Unique ID values ones

Hi Dax Guru's How do I perform a dax measure to calculate the sum of the cost ones for each unique ID. My current Dax formula: Total Cost = sum(cost) but the output is 1100 which is incorrect. The...
  • Gabry's avatar
    2 years ago

    Hello casperlow , 
    if every project has just one value, you can use max with summarize:

     

    Total = SUMX(SUMMARIZE('Table','Table'[project id], "val", MAX('Table'[unit])),[val])
    Let me know if this helps