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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.