<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic WeekStart() behavior changed suddenly in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/WeekStart-behavior-changed-suddenly/m-p/2129643#M91851</link>
    <description>&lt;P&gt;Hello, my QlikView app looks for a file whose name includes the date returned by :&lt;/P&gt;
&lt;P&gt;Date(WeekStart(Today(),-1,6), 'YYYYMMDD')&lt;/P&gt;
&lt;P&gt;Until recently, it opened the file named for the Monday of the previous week; now it looks for Sunday of the previous week.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The load script has not changed&lt;/LI&gt;
&lt;LI&gt;DayNames is set within the app as&amp;nbsp;'Mon;Tue;Wed;Thu;Fri;Sat;Sun' and has not changed.&amp;nbsp; There is not an include file that could be overriding it.&lt;/LI&gt;
&lt;LI&gt;We have not updated QlikView recently.&lt;/LI&gt;
&lt;LI&gt;We have done a Windows update, though--that couldn't affect this, could it?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2023 15:46:00 GMT</pubDate>
    <dc:creator>doherja</dc:creator>
    <dc:date>2023-10-18T15:46:00Z</dc:date>
    <item>
      <title>WeekStart() behavior changed suddenly</title>
      <link>https://community.qlik.com/t5/App-Development/WeekStart-behavior-changed-suddenly/m-p/2129643#M91851</link>
      <description>&lt;P&gt;Hello, my QlikView app looks for a file whose name includes the date returned by :&lt;/P&gt;
&lt;P&gt;Date(WeekStart(Today(),-1,6), 'YYYYMMDD')&lt;/P&gt;
&lt;P&gt;Until recently, it opened the file named for the Monday of the previous week; now it looks for Sunday of the previous week.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The load script has not changed&lt;/LI&gt;
&lt;LI&gt;DayNames is set within the app as&amp;nbsp;'Mon;Tue;Wed;Thu;Fri;Sat;Sun' and has not changed.&amp;nbsp; There is not an include file that could be overriding it.&lt;/LI&gt;
&lt;LI&gt;We have not updated QlikView recently.&lt;/LI&gt;
&lt;LI&gt;We have done a Windows update, though--that couldn't affect this, could it?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 15:46:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/WeekStart-behavior-changed-suddenly/m-p/2129643#M91851</guid>
      <dc:creator>doherja</dc:creator>
      <dc:date>2023-10-18T15:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: WeekStart() behavior changed suddenly</title>
      <link>https://community.qlik.com/t5/App-Development/WeekStart-behavior-changed-suddenly/m-p/2129674#M91853</link>
      <description>&lt;P&gt;I would look up if the FirstWeekDay variable has changed its value.&lt;/P&gt;
&lt;P&gt;Usually it's on the variable declaration of the main tab.&lt;/P&gt;
&lt;P&gt;You can also set it using:&lt;/P&gt;
&lt;P&gt;SET FirstWeekDay=0;&lt;/P&gt;
&lt;P&gt;This sets the first day of week on Monday. To be Sunday the first day of week, the value should be 6.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/August2023/Subsystems/Hub/Content/Sense_Hub/Scripting/NumberInterpretationVariables/FirstWeekDay.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense/August2023/Subsystems/Hub/Content/Sense_Hub/Scripting/NumberInterpretationVariables/FirstWeekDay.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If regional settings of the system has changed, I think there's a small chance that Qlik updated its regional features too, but you should have noticed it too by looking at thousand, decimal separators or date formats. I'm sorry but I am unable to confirm this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PD: I noticed that the third parameter of WeekStart tells Qlik the first day of the week, remember, six is for sunday, zero is for monday.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Scripting/DateAndTimeFunctions/weekstart.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Scripting/DateAndTimeFunctions/weekstart.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Watch out for this and check your formulas.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 16:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/WeekStart-behavior-changed-suddenly/m-p/2129674#M91853</guid>
      <dc:creator>Happy_Mask_Salesman</dc:creator>
      <dc:date>2023-10-18T16:54:59Z</dc:date>
    </item>
  </channel>
</rss>

