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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
SDTC
Frequent Visitor

Running total of a running total

Hello, 

 

I have created a running total using a calendar table and IDs using this formula:

Cumulative count =

CALCULATE(

COUNTA('Table'[IDs]),

FILTER(ALLSELECTED('Calendar table'[Date]),

ISONORAFTER('Calendar table'[Date],MAX('Calendar table'[Date]),DESC)))

 

I have the first two columns in the table below, is there a way to get the third column by computing a cumulative count of my initial cumulative count? The third column is needed for an availability calculation I am doing at week level rather than day. I have tried nesting and summing but because it is a measure I cannot sum. Any help would be greatly appreciated. 

 

DateCumulative countCumulative count of cumulative count
15/06/201010
16/06/202030
17/06/203060
18/06/2040100
19/06/2050150
1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

Please try this expression in a new measure.

 

Cumulative count X2 =

CALCULATE(

SUMX('Calendar table', [Cumulative count]),

FILTER(ALLSELECTED('Calendar table'[Date]),

ISONORAFTER('Calendar table'[Date],MAX('Calendar table'[Date]),DESC)))

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

2 REPLIES 2
mahoneypat
Microsoft Employee
Microsoft Employee

Please try this expression in a new measure.

 

Cumulative count X2 =

CALCULATE(

SUMX('Calendar table', [Cumulative count]),

FILTER(ALLSELECTED('Calendar table'[Date]),

ISONORAFTER('Calendar table'[Date],MAX('Calendar table'[Date]),DESC)))

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Thank you so much, this did exactly what I asked for.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.