Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Rolling cumulative Count

I am trying to calculate rolling cumulative count by weekstart (from monday) having a context filter but results are not as expected, please help how to work with DAX to get accurate result. Below it...
  • edhans's avatar
    edhans
    5 years ago

    Ok Anonymous - see if this works. It returns the data on the right side of the image. It is not affected by the slicers, just showing that it returns the same results.

    Running Total = 
    COUNTX(
        FILTER(
            'Table',
            'Table'[Mode] = "Production"
                && ('Table'[State] = "Progress" || 'Table'[State] = "Audit")
        ),
        'Table'[Item]
    )

    Note: you must have a date table. Grab the PBIX file I linked to above in my first post. It is updated with this new data and the measure.

     

  • Anonymous's avatar
    Anonymous
    5 years ago

    Sorry for the delay, restriction at my end. Thanks for the help it worked well.