Forum Discussion
Anonymous
9 years agoNot applicable
Cumulative Distinct Count and Slicer
Hello, I am running circles with this: Need to do a cumulative distinc count ( task ) So that I can play two cumulative line charts. Line A - Cumulative Task by start date ( started task...
- 9 years ago
Hi Anonymous
I think these calculated measures might be close...
Cumulative Task by Start Date = CALCULATE( DISTINCTCOUNT('Table1'[Task]), FILTER( ALLSELECTED('Table1'), 'Table1'[Start date]<=MAX('Dates'[Date]) ) )and
Cumulative Task by Finish Date = CALCULATE( DISTINCTCOUNT('Table1'[Task]), FILTER( ALLSELECTED('Table1'), 'Table1'[Finish Date]<=MAX('Dates'[Date]) ) )
Phil_Seamark
Microsoft Employee
9 years agoHi Anonymous
I think these calculated measures might be close...
Cumulative Task by Start Date =
CALCULATE(
DISTINCTCOUNT('Table1'[Task]),
FILTER(
ALLSELECTED('Table1'),
'Table1'[Start date]<=MAX('Dates'[Date])
)
)and
Cumulative Task by Finish Date =
CALCULATE(
DISTINCTCOUNT('Table1'[Task]),
FILTER(
ALLSELECTED('Table1'),
'Table1'[Finish Date]<=MAX('Dates'[Date])
)
)
Anonymous
9 years agoNot applicable
Great! I were failing on the allselect filter...
Now I got the cumulative lines!
Now I got the cumulative lines!