Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello you all.
I am making a calendar table with the calendar function just like
DateTable=CALENDAR(DATE(2023,01,01),DATE(2023,12,31))
Then I want to associate to every date in this table the starting date of the week (with weeks starting on Monday) so I add a calculated column with the following DAX code
WeekStart = DATEADD(TabellaDate[Date], 1-WEEKDAY(TabellaDate[Date], 2), Day)
The problem is, this outputs BLANK() for the first rows. Actually, I am pretty certain that I can't in any way write in this table any date that is outside the initial 01/01/2023 - 31/12/2023 range.
Is this the correct behaviour? And if it is, what is the advantage and how can I do what I want to do?
Solved! Go to Solution.
pls try this
WeekStart = [Date]-WEEKDAY([Date],2)+1
EndStart = [Date]-WEEKDAY([Date],2)+7
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
pls try this
WeekStart = [Date]-WEEKDAY([Date],2)+1
EndStart = [Date]-WEEKDAY([Date],2)+7
It does work. So the culprit is the DATEADD function. In fact, I see it is specified in the documentation that
The result table includes only dates that exist in the dates column.
Thank you very much.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 52 | |
| 51 | |
| 34 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 94 | |
| 77 | |
| 41 | |
| 27 | |
| 25 |