Forum Discussion

adoster's avatar
adoster
Resolver I
4 years ago
Solved

Help with DistinctCount by Date

Trying to find the distinct count of procedures by date.   Date Name Procedure Display Name Distinct PDN 11/8/2021 Mickey Mouse Procedure A 1 11/8/2021 Mickey Mouse Procedure B 1 ...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi adoster 

    Try to create this measure to achieve your goal.

    Measure = 
    VAR _SUMMARIZE = SUMMARIZE('Table','Table'[Date],"DISTINCT COUNT",DISTINCTCOUNT('Table'[Name]))
    RETURN
    SUMX(FILTER(_SUMMARIZE,[Date]<= MAX('Table'[Date])),[DISTINCT COUNT])

    Result is as below.

    Best Regards,
    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.