Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Filter table to get rows based on distinct values in column

Hi all!   I had searched but do not seem to find a solution. Please help?   I have the following table (sample) and need a Measure to sum up the duration for  distinct IDs only i.e. (10 + 13 + 5 ...
  • AlB's avatar
    7 years ago

    Hi Anonymous 

    Assuming duration is always the same for a specific ID:

    Measure =
    SUMX ( DISTINCT ( Table1[ID] ), CALCULATE ( MIN ( Table1[Duration] ) ) )