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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.