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
kathyyy19
Helper III
Helper III

How to create a calendar week so that the week runs from every Thursday to Wednesday?

Hi Everyone,

 

I'd like to create a chart so that each column represents total sales from last Thursday to this Wednesday. For example, 1st column = Total sales from June 1st-7th, 2nd column = Total sales from June 8th-14th .... However, for last week of May, I'd like to show May24-May31 (Wednesday-Wednesday). Other columns being Thursday to Wednesday. Does anyone know how to do this?

 

Thank you in advance!

 

 

 

Annotation 2023-06-13 192437.png

1 REPLY 1
amitchandak
Super User
Super User

@kathyyy19 , refer to these blogs, to get a week start from any day

 

new columns

Week Start Wednesday = [Date] - weekday([Date],13)  + 1

Week end Wednesday = [Date] - weekday([Date],13)  + 7 // add 8 if needed

 

 

Any Weekday Week - Start From Any day of Week
https://community.powerbi.com/t5/Community-Blog/Any-Weekday-Week-Decoding-Date-and-Calendar-2-5-Powe...
https://medium.com/chandakamit/cheat-sheet-any-weekdays-week-start-date-just-one-variable-apart-6b2e...

 

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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