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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Measure to find the Cumulative Sum Values

Hi, I have two fields in my table. YYYY-MM which the year and month details. Due amount which has the due amount that is yet to come for respective year and month.

 

I need a Measure to find the Cumulative value which add the previous due amounts till the end. The first month will start with same due amount and from the next month the due amount gets added one by one.

 

Please help me to create a measure with DAX.

 

YYYY-MMDue AmountCumulative Value
2021-0110001000
2021-0220003000
2021-0330006000
2021-04400010000
2021-05500015000
1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi ,

 

Please try:

 

 

Measure = SUMX(FILTER(ALLSELECTED('Table'),'Table'[YYYY-MM] <= MAX('Table'[YYYY-MM]) ),  'Table'[Due Amount])

 

 

Vlianlmsft_0-1637904618580.png

 

 

Best Regards,
Liang
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

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi ,

 

Please try:

 

 

Measure = SUMX(FILTER(ALLSELECTED('Table'),'Table'[YYYY-MM] <= MAX('Table'[YYYY-MM]) ),  'Table'[Due Amount])

 

 

Vlianlmsft_0-1637904618580.png

 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

@Anonymous ,

a new column = sumx(filter(Table, [YYYY-MM] = earlier([YYYY-MM]) ),  [Due Amount])

 

 

a new measure= sumx(filter(allselected(Table), [YYYY-MM] = max([YYYY-MM]) ),  [Due Amount])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.