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
CloudMonkey
Post Prodigy
Post Prodigy

Change first day of week for weekly bins

Hi,

 

I have some data grouped into weekly bins (every 7 days) which is working great but I noticed the first day of each 7 day bin is a Sunday. Please can you tell me how to change this to a Monday?

 

Thanks,

 

CM

1 ACCEPTED SOLUTION
v-cherch-msft
Employee
Employee

Hi @CloudMonkey 

You may create a calculated column like this post.

Column = 
VAR d =
    MAX(  Table2[date] )
RETURN
    d
        - QUOTIENT ( DATEDIFF ( Table2[Date], d, DAY ), 7 ) * 7

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-cherch-msft
Employee
Employee

Hi @CloudMonkey 

You may create a calculated column like this post.

Column = 
VAR d =
    MAX(  Table2[date] )
RETURN
    d
        - QUOTIENT ( DATEDIFF ( Table2[Date], d, DAY ), 7 ) * 7

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.