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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Microsoft Employee
Microsoft 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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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