Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
comish4lif
Helper II
Helper II

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?

1 ACCEPTED SOLUTION

@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] )
    )
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Toslo
New Member

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?

Phil_Seamark
Employee
Employee

Hi @comish4lif

 

Could you maybe show an example of what you mean?  


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Cumulative.png

 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.

NotCumulative.png

 

 

@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] )
    )
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.