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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
prices35
New Member

Cumulative sum without date field

I am trying to create a Cumulative Sum field that adds up the "Every Chargeback" column.  I am looking at all data from 2011 though today and breaking that up by the "CHGBACK DAY OF MONTH".  The problem I am having is the system doesn't know how to do this because it is looking at data that happened on the 1st day of every month over every year.  Here is the formula I was trying to get to work.  Any help would be appreciated.

 

Cumulative Every Chargeback = [Total Chargebacks] (FILTER(ALLEXCEPT('Date Chrgback', 'Date Chrgback'[CHGBACK DAY OF MONTH]), min('Date Chrgback'[CHGBACK DAY OF MONTH]) <= MAX('Date Chrgback'[CHGBACK DAY OF MONTH])))

 

Power BI Cumulative Sum 2.png

1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

Hi @prices35,

 

To calculate the cumulative total for the "Every Chargeback" column, you can create a measure like below:

 

Cumulative Every Chargeback = CALCULATE(SUM('Date Chrgback'[Every Chargeback]),FILTER(ALL('Date Chrgback'),'Date Chrgback'[CHGBACK DAY OF MONTH]<=MAX('Date Chrgback'[CHGBACK DAY OF MONTH])))

 

q4.PNG

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
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
v-qiuyu-msft
Community Support
Community Support

Hi @prices35,

 

To calculate the cumulative total for the "Every Chargeback" column, you can create a measure like below:

 

Cumulative Every Chargeback = CALCULATE(SUM('Date Chrgback'[Every Chargeback]),FILTER(ALL('Date Chrgback'),'Date Chrgback'[CHGBACK DAY OF MONTH]<=MAX('Date Chrgback'[CHGBACK DAY OF MONTH])))

 

q4.PNG

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

It works but if you want filter by antother field doesn't work, for example if I add a month name column =

switch ([CHGBACK DAY OF MONTH]

, 1

,"January"

,2

,"February"... etc )

 

 

How can I do that ?

 

Regards

Thanks for this very helpful post. Did you manage to figure this out? I'm looking for exactly the same solution e.g. managed to do the cumulative sum for all data but if I filter on the data (e.g. on the cost centre), it doesn't calculate the cumulative appropriately.

I've figured it out :)!!!

 

Add VALUES at the end...

 

Cumulative = CALCULATE(
SUM('Sheet2 (2)'[Actual]),
FILTER(ALL('Sheet2 (2)'),'Sheet2 (2)'[Period]<=MAX('Sheet2 (2)'[Period])), VALUES('Sheet2 (2)'[Cost Centre]))

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors