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
Hi community,
I have a table with a date column and I am trying to create a new column that is Week_Starting (Monday). I have already created the Week Num and Day of Week columns and I wanted to create a new Week Starting column where DayOfWk =1 within each of the Week_num rows. For example for all rows where Week_Num = 32, I want to select the row where DayOfWk=1 (ie 6/08/2024) and populate the new Week_Startig column with 6/08/2024. I don't want to create another summarized table with only Week_Num and filter on where DayOfWk is only 1 and link this summarised table back into this table because my data model already has too many tables. Is it possible to create this Week_Start column within this date table?
I wrote the below code but could not get it to work
Solved! Go to Solution.
Hi,
If your DATE_LYSLS is continuous and there is no missing date, try this for a new column
WeekStart = [DATE_LYSLS] - (WEEKDAY([DATE_LYSLS], 2) - 1)
hi community,
I tried rewriting the DAX statement by first creating a summarised table (_table1) and then use the summarised table to link back to the 'Period Filter' table using the Week_Num columns and return the Date column in the _table1. However you can see I got an error message.
Hi,
If your DATE_LYSLS is continuous and there is no missing date, try this for a new column
WeekStart = [DATE_LYSLS] - (WEEKDAY([DATE_LYSLS], 2) - 1)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 5 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 19 | |
| 10 | |
| 8 | |
| 7 | |
| 7 |