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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Levent
Frequent Visitor

Cumulative by week

Hello,

 

Anybody can resolve my problem ? 

 

I want to get the budget of project by week with DAX.  I have startDate and endDate. But i can't calculate realtive to week.. I tried by month with TOTALMTD but it's not good result.

 

cumul_table.png

Thanks a lot for your responses !

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @Levent ,

 

One sample for your reference, Please check the following steps as below.

 

1. Create a Calendar table and insert a calculated column in it.

 

Calendar = CALENDARAUTO()
Week = "Week" & WEEKNUM('Calendar'[Date])

2. Create a measuare to get the excepted result.

 

Measure = 
CALCULATE(SUM(Porjects[Budget]),FILTER(Porjects, Porjects[DateEnd]>=MIN('Calendar'[Date])))

Capture.PNG

 

Pbix as attached.

 

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

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

Will Week1 always start on the first day of the year?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-frfei-msft
Community Support
Community Support

Hi @Levent ,

 

One sample for your reference, Please check the following steps as below.

 

1. Create a Calendar table and insert a calculated column in it.

 

Calendar = CALENDARAUTO()
Week = "Week" & WEEKNUM('Calendar'[Date])

2. Create a measuare to get the excepted result.

 

Measure = 
CALCULATE(SUM(Porjects[Budget]),FILTER(Porjects, Porjects[DateEnd]>=MIN('Calendar'[Date])))

Capture.PNG

 

Pbix as attached.

 

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

Thanks a lot, it's clear and perfect !

Gopal30
Helper I
Helper I

Try this:

 

Cumu_Total = Calculate(Sum(Table[Budget]), Filter(All("Table[Date]"), Table[Date] <= MAX (Table[Date])))

Thank for your response. 

 

It's not just cumulating in time week by week.

But I need to cumulate only the budgets that have a start and end date in the first day of the week.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.

Top Solution Authors