March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi guys,
I am trying to create a week column (displaying week number) which starts from Tuesday and ends next Tuesday.
Any suggestion?
I used Weeknum 21 but it starts from Mon, not Tue.
Thanks a lot
Solved! Go to Solution.
Hi @snamhoang
Please add this calculated column to your Calendar table
Week Starting Tuesday = var offset = switch(FORMAT('Dates'[Date],"DDD"), "Tue",0, "Wed",-1, "thu",-2, "Fri",-3, "Sat",-4, "Sun",-5, "Mon",-6 ,0) Return DATEADD('Dates'[Date],offset,DAY)
Hi @snamhoang
Please add this calculated column to your Calendar table
Week Starting Tuesday = var offset = switch(FORMAT('Dates'[Date],"DDD"), "Tue",0, "Wed",-1, "thu",-2, "Fri",-3, "Sat",-4, "Sun",-5, "Mon",-6 ,0) Return DATEADD('Dates'[Date],offset,DAY)
Hi @snamhoang,
What I would do is to suggest creating a new column in the Query Editor.
In doing that you can easily create it in your Date table, and from there you could then create your weeks also based off your Week Number column?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
127 | |
82 | |
69 | |
53 | |
44 |
User | Count |
---|---|
204 | |
105 | |
99 | |
64 | |
54 |