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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
miracle2023
Helper I
Helper I

Cumulative DAX sum measure

Hi,

 

Has anyone done something similar to my problem?  I have a matrix table made by dimDate year and month for the upcoming 16 months starting from the current month.

 

Column overdue - its cases those deadline was in the past. Therefore, it is overdue and my table shows the overall count of them. 

 

Due cases - its cases those deadline is in the future based on the deadline having a single relationship between dimdate table and my fact table deadline. 

 

Availability - Static value meaning how many cases my team is able to handle

 

My methodology is shown in the attached table while predicted overdue can be negative.

 

YearMonthOverdueDueAvailibility (Static value)Predicted Overdue
20239345480 
202310 2380(34+23)-80
202311 3580(34+23+35)-80
202312 6580(34+23+35+65)-80
202401 4380(34+23+35+65+43)-80
202402 7580(34+23+35+65+43+75)-80

 

1 ACCEPTED SOLUTION
DataNinja777
Super User
Super User

Hi @miracle2023,

I've prepared the calculated columns which produce the same output as your screen print.  

I've first added a helper column below:

Sakiko_1-1694001976480.png

Then, used that helper column in the dax formula for calculated column which produces your required result.  

Sakiko_0-1694001859615.png

The pbix file is saved under the following link:

Cumulative sum.pbix

 

View solution in original post

2 REPLIES 2
DataNinja777
Super User
Super User

Hi @miracle2023,

I've prepared the calculated columns which produce the same output as your screen print.  

I've first added a helper column below:

Sakiko_1-1694001976480.png

Then, used that helper column in the dax formula for calculated column which produces your required result.  

Sakiko_0-1694001859615.png

The pbix file is saved under the following link:

Cumulative sum.pbix

 

Thank you very much for your help! 

 

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.