cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Helper II

## Have Week Start on Saturday in Date Column

Hi there,

I am looking to create weekly buckets to sort data within a date column, so that the week starts on a Saturday and ends on a Friday. For example: Saturday, October 1, 2022 through Friday, October 7, 2022 should display October 1, 2022. And Saturday, October 8, 2022 through Friday, October 14, 2022 should display October 8, 2022.

I used the following formula: 'Date'[Date] - WEEKDAY('Date'[Date], 2) - 1, but this did not have the desired outcome because the column is still using Monday as the start day for each week. Additionally, I tried changing the arguements to the WEEDAY function, but it appears I am only allowed to enter in 1 through 3.

Any help with with this would be greatly appreciated.

1 ACCEPTED SOLUTION
Helper II

Thanks for the clarification @Greg_Deckler ! I was able to get the same results using "+1" at the end of formula instead of "-1"

4 REPLIES 4
Super User
``'Date'[Date] - WEEKDAY('Date'[Date], 16) - 1``

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Helper II

Thank you for the prompt reply! Unfortunately, the formula provided did not have the desired outcome. I was able to brute force the desired outcome using a long "if" statement.

Thanks again!

Super User

Using 16 as the second parameter of weekday returns Saturday = 1 and Friday = 7.`WEEKDAY('Date'[Date], 16)`

@MikePowerBI

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Helper II

Thanks for the clarification @Greg_Deckler ! I was able to get the same results using "+1" at the end of formula instead of "-1"

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - June 2024

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

#### Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors
Top Kudoed Authors