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! 

 

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)