Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
Hello all!
For months, I have been using this awesome DAX generated date table created by Macro Russo [ @marcorusso ] and the team over at SQL BI. The only thing I think it lacks is a [Calendar StartOfWeek] column. Can anyone advise me how I would add a [Calendar StartOfWeek] column to this date table?
For example, the date 10/30/2019 needs to have a [Calendar StartOfWeek] value of 10/27/2019.
You can find the Date Table template here: https://www.sqlbi.com/tools/dax-date-template/
Solved! Go to Solution.
@Keith3618
Please try creating calculated column as per below code
Column = CALCULATE(MIN('Date'[Date]),ALLEXCEPT('Date','Date'[Calendar Week Year]))
@Keith3618
Please try creating calculated column as per below code
Column = CALCULATE(MIN('Date'[Date]),ALLEXCEPT('Date','Date'[Calendar Week Year]))
Awesome! This works great. I appreciate your help!
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
User | Count |
---|---|
21 | |
21 | |
21 | |
13 | |
12 |
User | Count |
---|---|
43 | |
28 | |
25 | |
23 | |
22 |