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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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