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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
roeder11
Frequent Visitor

Change Week Number Display Format

Hi!

 

i am trying to communicate week number in a different format than the default, which is just a number. i would like to instead of displaying "1" for the first week of the year, display "Jan 1" with the 1 being the first day of that week. the next week would show "Jan 8"

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @roeder11 

 

Please try the following dax

Week Start Date = 
VAR CurrentDate = 'Table'[Date]  
VAR YearStartDate = DATE(YEAR(CurrentDate), 1, 1)
VAR FirstDayOfWeek = WEEKDAY(YearStartDate, 2) - 1
VAR AdjustedYearStart = YearStartDate - FirstDayOfWeek
VAR WeekNum = WEEKNUM(CurrentDate, 2) - 1
RETURN
AdjustedYearStart + (WeekNum * 7)

 

Here is the result you want

vjialongymsft_0-1708332747793.png

 

 

 

 

 

 

Best Regards,

Jayleny

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @roeder11 

 

Please try the following dax

Week Start Date = 
VAR CurrentDate = 'Table'[Date]  
VAR YearStartDate = DATE(YEAR(CurrentDate), 1, 1)
VAR FirstDayOfWeek = WEEKDAY(YearStartDate, 2) - 1
VAR AdjustedYearStart = YearStartDate - FirstDayOfWeek
VAR WeekNum = WEEKNUM(CurrentDate, 2) - 1
RETURN
AdjustedYearStart + (WeekNum * 7)

 

Here is the result you want

vjialongymsft_0-1708332747793.png

 

 

 

 

 

 

Best Regards,

Jayleny

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

_AAndrade
Super User
Super User

In your Dates table add this measure on Power Query:

_AAndrade_0-1707933021115.png


"= Table.AddColumn(#"Name of step above", "Week New Format", each Text.Combine({Date.ToText(Date.StartOfWeek([Date]), "MMM"), " ", Number.ToText(Date.Day(Date.StartOfWeek([Date])))}),
type text)"





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




I was not able to figure out the syntax, but the below worked for me. 

 

'Date Table'[Due Date] - WEEKDAY('Date Table'[Due Date],2) + 1
vicky_
Super User
Super User

If you've got a date table, then you can create a new column based on the week number - i.e 

Start of Week = CALCULATE(MIN('Date Table'[Week Number]), ALLEXCEPT('Date Table', 'Date Table'[Week Number]))

This just printed week number again

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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