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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

custom weeknum

Hello I need your help.

how to create a custom weeknum column, starting on Thursday and ending on Wednesday; weeknum only has two criteria to start on Monday or Sunday.

MONTENEGRO_0-1663360302612.png

1 ACCEPTED SOLUTION

Thank you, I read the context of the function and found the solution, there he explains it well; return_type 14 is the solution.

MONTENEGRO_0-1664288764554.png

View solution in original post

2 REPLIES 2
rsbin
Community Champion
Community Champion

@Syndicate_Admin ,

Please review the documentation from Microsoft:

https://learn.microsoft.com/en-us/dax/weeknum-function-dax

It shows you the return_types to use for your particular case.

Trust this helps.

Regards,

Thank you, I read the context of the function and found the solution, there he explains it well; return_type 14 is the solution.

MONTENEGRO_0-1664288764554.png

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.