Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
I have a table that looks like this with weeks starting on Tuesday and ending on Monday:
| Date | WeekNumber | Day of Week Number |
| 10/17/2021 | 147 | 1 |
| 10/18/2021 | 147 | 2 |
| 10/19/2021 | 147 | 3 |
| 10/20/2021 | 147 | 4 |
| 10/21/2021 | 147 | 5 |
| 10/22/2021 | 147 | 6 |
| 10/23/2021 | 147 | 7 |
| 10/24/2021 | 148 | 1 |
| 10/25/2021 | 148 | 2 |
| etc | etc | etc |
I'm trying to generate a new column that shows the date from day 1 column above on each row.
Date | WeekNumber | Day of Week Number | WeekStartDate |
10/17/2021 | 147 | 1 | 10/17/2021 |
| 10/18/2021 | 147 | 2 | 10/17/2021 |
| 10/19/2021 | 147 | 3 | 10/17/2021 |
| 10/20/2021 | 147 | 4 | 10/17/2021 |
| 10/21/2021 | 147 | 5 | 10/17/2021 |
| 10/22/2021 | 147 | 6 | 10/17/2021 |
| 10/23/2021 | 147 | 7 | 10/17/2021 |
| 10/24/2021 | 148 | 1 | 10/24/2021 |
| 10/25/2021 | 148 | 2 | 10/24/2021 |
| etc |
I've tried several dax calculations but they all seem to end in the following error message: "a single value for column "date" in table "Calendar" cannot be determined."
Any ideas why this might be happening and/or how to add this WeekStartDate column?
Solved! Go to Solution.
The most likely reason is that you are trying to define a measure instead of a calculated column. You'll definitely get that error if you try to define a measure that way but not for a calculated column.
How about this as a calculated column?
WeekStart = Table1[Date] - Table1[Day of Week Number] + 1
Still getting the "A single value for column 'Date' in table 'Calendar' cannot be determined. This can happen when a measure formula refers to a columnj that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result." error
The most likely reason is that you are trying to define a measure instead of a calculated column. You'll definitely get that error if you try to define a measure that way but not for a calculated column.
That was it! Thanks!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.