Skip to main content
cancel
Showing results for 
Search instead 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

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
Microsoft Employee
Microsoft 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
Microsoft Employee
Microsoft 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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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