Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
SergioS
Contributor
Contributor

WeekStart & WeekEnd

Why WeekStart('01/01/2020') returns 30/12/2019 and WeekEnd('31/12/2020') returns 03/01/2021 regardless the value of BrokenWeeks.

I'm expecting as results 01/01/2020 and 31/12/2020.

Thank you.

Labels (3)
2 Replies
Taoufiq_Zarra

@SergioS  Weekstarts or weekend corresponds to the week's beginning

This function returns a value corresponding to a timestamp of the first millisecond of the first day (Monday) of the calendar week containing date

Capture.PNG

do you need MonthStart and MonthsEnd ?

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
SergioS
Contributor
Contributor
Author

Hi Taoufiq, I am looking for a formula for weeks, not months. For every year YYYY it must return 1/1/YYYY for the first week, and 31/12/YYYY for the last week. Thank you.