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
Arich62585
New Member

Custom Column Formula for Work Week in Power Query Editor

Hi All,

    I am able to get the Work Week results by using "=Date.WeekOfYear([My Data])". However i am tyring to figure out how can i get the Work Week to start on Sunday's at 6:00:00AM and end on Sunday's at 5:59:59AM.

 

Example:

If my data is "8/27/2023 5:59:00", i would like the results to be 34 (WW34)

and

If my data is "8/27/2023 6:01:00", i would like the results to be 35 (WW35)

 

I'm sorry if this is a simple task but i've trying to search and cant find anything on this type of case.

 

Thanks in advance.

1 ACCEPTED SOLUTION
ThxAlot
Super User
Super User

Simple enough

ThxAlot_0-1693520891739.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



View solution in original post

2 REPLIES 2
ThxAlot
Super User
Super User

Simple enough

ThxAlot_0-1693520891739.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



@ThxAlot , This worked perfectly. Thank you so much.

 

Last question for learning purposes, does (0,6,0,0) represent (Days, Hours, Minutes, Seconds)?

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.