Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hey Guys,
I was wondering if anyone could help me. I need to work out the Week Offset. However our week starts on a Saturday rather than Sunday or a Monday.
This is the formula we previously used when our week started on a Monday.
Solved! Go to Solution.
@Cutten101 , these will help you to get the week start for Saturday or any day
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...
Hi @Cutten101 ,
Please try below dax formula
Week Offset =
VAR StartOfWeek =
'Date'[Date] - WEEKDAY ( 'Date'[Date], 16 ) + 1
VAR StartOfCurrentWeek =
TODAY () - WEEKDAY ( TODAY (), 16 ) + 1
RETURN
( StartOfWeek - StartOfCurrentWeek ) / 7
For more details, you can read related document: WEEKDAY – DAX Guide
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Cutten101 , these will help you to get the week start for Saturday or any day
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...
Thank you, the examples in these forums helped me create the offset
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
97 | |
75 | |
65 | |
53 |
User | Count |
---|---|
144 | |
103 | |
98 | |
85 | |
64 |