Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Cumulative count

Hi,   I have this table where I have trouble getting the correct cumulative values. I would like have a cumulative count column that is not 1, 1, 1, but instead 08/07 = 2, 25/07 = 3 etc.    ...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Anonymous ,

     

    If you don't want to expand your table visual to show cumulative count in continuous date, you don't need to use [Date] in 'Kalendar' table. Or you can add a 'IF' function in your measure.

    cumm = 
    IF (
        COUNT ( Data[Intern status] ) <> BLANK (),
        CALCULATE (
            COUNT ( Data[Intern status] ),
            FILTER ( ALL ( Kalendar[Date] ), 'Kalendar'[Date] <= MAX ( Kalendar[Date] ) )
        )
    )

    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.