The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Solved! Go to Solution.
HI, @MichaelG1117
use addcolumn() function
ADDCOLUMNS (
CALENDARAUTO (),
"weeknum",weeknum(tablename[datecolumn])
)
HI, @MichaelG1117
use addcolumn() function
ADDCOLUMNS (
CALENDARAUTO (),
"weeknum",weeknum(tablename[datecolumn])
)
thanks!
User | Count |
---|---|
27 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
11 | |
7 |