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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Anonymous
Not applicable

Cumulative measure for count

I have table that looks as follows:

 

Cumulative.PNG 

 

I have the month year and count. The cumulative is the measure that i would like to create. The value for jan 2018 is the same. Then Feb = count of Jan + Count of Feb. and March = count of Feb + Count of March and so on.

 

Any help? Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

This should work for your example

Cumulative Count = 
CALCULATE(
    SUM( 'Cumu Count Ex'[Count]),
    FILTER(
        ALL('Cumu Count Ex'[Date]),
        MAX('Cumu Count Ex'[Date]) >= 'Cumu Count Ex'[Date] 
    )
)

Cumulative Count.png

View solution in original post

1 REPLY 1
Anonymous
Not applicable

This should work for your example

Cumulative Count = 
CALCULATE(
    SUM( 'Cumu Count Ex'[Count]),
    FILTER(
        ALL('Cumu Count Ex'[Date]),
        MAX('Cumu Count Ex'[Date]) >= 'Cumu Count Ex'[Date] 
    )
)

Cumulative Count.png

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

Check out the May 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

May 2025 Monthly Update

Fabric Community Update - May 2025

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