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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
MichaelG1117
Helper I
Helper I

Creating Date Table With "Week Number" Column Without Using Calculated Columns

I can create the AutoCalendar Date Table but need to create one that includes a "Week Number" column also. I cannot use a calculated column so I need to know the language to create the table from scratch (either in Power Query or Dax). 

 

Any help would be greatly appreciated. 

 

Thanks,

 

Michael G. 

1 ACCEPTED SOLUTION
Dangar332
Super User
Super User

HI, @MichaelG1117 

use addcolumn() function 

ADDCOLUMNS (
    CALENDARAUTO (),
    "weeknum",weeknum(tablename[datecolumn])
)

View solution in original post

2 REPLIES 2
Dangar332
Super User
Super User

HI, @MichaelG1117 

use addcolumn() function 

ADDCOLUMNS (
    CALENDARAUTO (),
    "weeknum",weeknum(tablename[datecolumn])
)

thanks!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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