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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Cumulative Sum of Measure

Hi,

I am at a loss when trying to calculate the cumulative sum of a measure. I have read multiple forum posts and googled DAX formulae, but I am unable to find a solution to my problem. Here is my data.

 

Budget Data (read from an excel file)

Budget Data.JPG



 

 

 

 

 

 

 

 

 

 

 

 

Calendar Table (Created this using DAX).  Providing a snapshot.

Calender.JPG



 

 

 

 

 

 

 

 

 

 

 

 

I created a relationship between Quarter of Year (Budget Data) to Quarter (Calender). This has a cardinality Many-Many.

The Ask: Find the cumulative budget for WeekNum of Quarter

I first created a measure to calculate the Budget for WeekNum of Quarter.

Budget for WeekNum of Quarter = DIVIDE(DIVIDE(SUM('Budget Data'[Budget for Quarter]), 3), 13)

Built a matrix having the WeekNum of Quarter as Rows, Quarter as Columns and the above measure as values.


Budget for WeeNum.JPG
 
 
 
 
 
I need to create a measure to find the cumulative budget for weeknum of quarter. I have tried various ways but I end up getting values which are same as the measure. Please help and many thanks in advance.

How I want the data to look like:
Cumlative.JPG
2 REPLIES 2
Anonymous
Not applicable

Hi,

I am at a loss when trying to calculate the cumulative sum of a measure. I have read multiple forum posts and googled DAX formulae, but I am unable to find a solution to my problem. Here is my data.

 

Budget Data (read from an excel file)

Budget Data.JPG



 

 

 

 

 

 

 

 

 

 

 

 

Calendar Table (Created this using DAX).  Providing a snapshot.

Calender.JPG



 

 

 

 

 

 

 

 

 

 

 

 

I created a relationship between Quarter of Year (Budget Data) to Quarter (Calender). This has a cardinality Many-Many.

The Ask: Find the cumulative budget for WeekNum of Quarter

I first created a measure to calculate the Budget for WeekNum of Quarter.

Budget for WeekNum of Quarter = DIVIDE(DIVIDE(SUM('Budget Data'[Budget for Quarter]), 3), 13)

Built a matrix having the WeekNum of Quarter as Rows, Quarter as Columns and the above measure as values.


Budget for WeeNum.JPG
 
 
 
 
 
I need to create a measure to find the cumulative budget for weeknum of quarter. I have tried various ways but I end up getting values which are same as the measure. Please help and many thanks in advance.

How I want the data to look like:
Cumlative.JPG
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

Hope this third party bolg can help you.

https://www.mssqltips.com/sqlservertip/4841/calculating-mtd-qtd-ytd-running-and-cumulative-total-in-power-bi/

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors