Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

View all the Fabric Data Days sessions on demand. View schedule

Reply
snamhoang
New Member

Create Week column starting from Tuesday and ending next Tuesday

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

1 ACCEPTED SOLUTION
Phil_Seamark
Microsoft Employee
Microsoft Employee

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)

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

2 REPLIES 2
Phil_Seamark
Microsoft Employee
Microsoft Employee

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)

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

GilbertQ
Super User
Super User

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?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors