Forum Discussion
Levent
7 years agoFrequent 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 TO...
- 7 years ago
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])))Pbix as attached.
v-frfei-msft
7 years agoCommunity 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])))
Pbix as attached.
- Levent7 years agoFrequent Visitor
Thanks a lot, it's clear and perfect !