The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Thanks a lot for your responses !
Solved! Go to Solution.
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.
Hi,
Will Week1 always start on the first day of the year?
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.
Thanks a lot, it's clear and perfect !
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
78 | |
66 | |
52 | |
50 |
User | Count |
---|---|
121 | |
120 | |
78 | |
63 | |
62 |