Forum Discussion
adoster
4 years agoResolver I
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 ...
- Anonymous4 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 ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
lbendlin
4 years agoSuper User
You need to decide what you are actually trying to measure. Distint count of name, distinct count of procedure, or distinct count of [Name]+[Procedure] ?