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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello all,
In Power BI Power Query I want to create a date table. The end day is today and my startday should be the date of the calculated Monday of the week and year columns.
Can someone help me with this?
Thank you in advance for your help.
Kind regards,
Hans
Solved! Go to Solution.
For StartDate, go to the "Add Column" tab and select "Custom Column" :
Date.AddDays(Date.FromText(Text.From([Year]) & "-01-01"), (([Week] - 1) * 7) - Date.DayOfWeek(Date.FromText(Text.From([Year]) & "-01-01"))
and for the Enddate :
DateTime.Date(DateTime.LocalNow())
If you can provide some data, it will be helpful 🙂
Hi @AmiraBedh,
Thank you for your help. That was exactly where I was looking form
Kind regards,
Hans
For StartDate, go to the "Add Column" tab and select "Custom Column" :
Date.AddDays(Date.FromText(Text.From([Year]) & "-01-01"), (([Week] - 1) * 7) - Date.DayOfWeek(Date.FromText(Text.From([Year]) & "-01-01"))
and for the Enddate :
DateTime.Date(DateTime.LocalNow())
If you can provide some data, it will be helpful 🙂
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |