Forum Discussion

comish4lif's avatar
comish4lif
Helper II
8 years ago
Solved

Cumulative Count by Date

I have looked at 47 different formula posted here and cannot figure this out.

 

I have a Sharepoint list that tracks workflow items and I am trying to create a Cumulative Monthly count by the Created Date.

 

Requests Created Cumulative = 
CALCULATE(
            COUNT('Production Approval Workflow'[RowNumber]),
            FILTER(
                        'Production Approval Workflow',
                        ('Production Approval Workflow'[Created].[MonthNo] <= MAX ('CalendarTable'[Date]) ) 
                  )
)

This code above will return the correct cumulative total for all time. What do I need to add to get this measure to display a monthly cumulative total for each month?

  • comish4lif,

     

    You may refer to measure below.

    Measure =
    CALCULATE (
        COUNT ( 'Production Approval Workflow'[RowNumber] ),
        FILTER (
            ALLSELECTED ( 'Production Approval Workflow' ),
            'Production Approval Workflow'[Created] <= MAX ( 'CalendarTable'[Date] )
        )
    )
    

4 Replies

    • comish4lif's avatar
      comish4lif
      Helper II

       The picture above is how I want the calculation to show a monthly total.

      Below is how it is not displaying the monthly total, and is only showing the complete total.

       

       

      • v-chuncz-msft's avatar
        v-chuncz-msft
        Community Support

        comish4lif,

         

        You may refer to measure below.

        Measure =
        CALCULATE (
            COUNT ( 'Production Approval Workflow'[RowNumber] ),
            FILTER (
                ALLSELECTED ( 'Production Approval Workflow' ),
                'Production Approval Workflow'[Created] <= MAX ( 'CalendarTable'[Date] )
            )
        )
        
  • In regard to the topic above. I used the solution to get a measure for the count in every category, but I get no values for dates when their is no "activity" on a category. It wil only cumulatively count the rows when there is a value in that year. Example 2018 "109", 2019 "" and 2020 "121". Does anybody know how to solve this issue?