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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
schwinnen
Helper V
Helper V

Custom Column Date.EndOfWeek

If I create a custom column in Power Query using

= Date.EndOfWeek([DateField)] 

I get the result to be Sunday at 12:00:00 instead of Saturday at 11:59:59 or even Saturday at 12:00:00. For example, the week ending for the most recent week is 1/5/20 12:00:00, Sunday at midnight.

I can create a calculated column to give me the result I want (Desired Result = Custom Column - 1), but that somewhat defeats the purpose of trying to use Power Query.  

Anyone know how I use Power Query to give me Saturday as the week end date?

1 ACCEPTED SOLUTION
ChrisMendoza
Resident Rockstar
Resident Rockstar

@schwinnen -

Is this what you're meaning to accomplish?

4.PNG






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



View solution in original post

2 REPLIES 2
ChrisMendoza
Resident Rockstar
Resident Rockstar

@schwinnen -

Is this what you're meaning to accomplish?

4.PNG






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



Looks right @ChrisMendoza 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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