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: 
jood_ahmad
Creator II
Creator II

WeekDays and Week Number

Dears,

Good day,

Actually, I got confused. I try to fix my calendar to start on Sunday instead of Monday but it doesn't work and when I get the week number also I get one-day forward especially at the end of the year if the week between Dec 2017 and Jan 2018 and so on.

Any Idea, please.

4 Replies
devarasu07
Master II
Master II

Hi,

Refer to the @HIC article on redefine week number. thanks

Redefining the Week Numbers

Week Start - Sunday instead of Monday

Thanks,Deva

jood_ahmad
Creator II
Creator II
Author

No still getting wrong daysname in wrong day number and by defult the week will be wrong.

jood_ahmad
Creator II
Creator II
Author

I'm trying something it may work.........

qlik4asif
Creator III
Creator III

Change Env variables to

SET FirstWeekDay=6;

By default, QlikView functions use Monday as the first day of the week. The following values can be used:

  • 0 (= Monday)
  • 1 (= Tuesday)
  • 2 (= Wednesday)
  • 3 (= Thursday)
  • 4 (= Friday)
  • 5 (= Saturday)
  • 6 (= Sunday)

Examples:

Set FirstWeekDay=6; //(set Sunday as the first day of the week)

http://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/NumberInterpret...