Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
drohm002
Creator II
Creator II

Creating a Date field for the beginning of each week

Hello, see the table below.  I am trying to create a field in my script that gives me what the yellow column is.  It gives me the Sunday date for each week, and gives that value for every date within that week.  Thank you!

drohm002_0-1746545196520.png

 

1 Solution

Accepted Solutions
SRA
Partner - Creator
Partner - Creator

Hi,

You can use the function Weekstart

More info : https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTimeFun...

According to what you have in you main configuration for variable FirstWeekDay you will need (or not) to use the first_week_day argument.

Regards

SRA

View solution in original post

1 Reply
SRA
Partner - Creator
Partner - Creator

Hi,

You can use the function Weekstart

More info : https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTimeFun...

According to what you have in you main configuration for variable FirstWeekDay you will need (or not) to use the first_week_day argument.

Regards

SRA