Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

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...
  • Phil_Seamark's avatar
    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])
    						)
    						)