<?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 Re: Week start day in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Week-start-day/m-p/1527037#M440834</link>
    <description>&lt;P&gt;I think you should use the WeekStart function&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/weekstart.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/weekstart.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="TableStyle-tableGrid" cellspacing="0"&gt;
&lt;THEAD&gt;
&lt;TR class="Head-Header1"&gt;
&lt;TH class="HeadI--"&gt;Argument&lt;/TH&gt;
&lt;TH class="HeadG--"&gt;Description&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR class="Body-Body1"&gt;
&lt;TD class="BodyI--"&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;date&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD class="BodyG--"&gt;The date to evaluate.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR class="Body-Body1"&gt;
&lt;TD class="BodyI--"&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;period_no&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD class="BodyG--"&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;shift&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is an integer, where the value 0 indicates the week which contains&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;date&lt;/SPAN&gt;. Negative values in shift indicate preceding weeks and positive values indicate succeeding weeks.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR class="Body-Body1"&gt;
&lt;TD class="BodyC--"&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;first_week_day&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD class="BodyA--"&gt;
&lt;P&gt;If you don't specify&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;first_week_day&lt;/SPAN&gt;, the value of variable&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;FirstWeekDay&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;will be used as the first day of the week.&lt;/P&gt;
&lt;P&gt;If you want to use another day as the first day of the week, set&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;first_week_day&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to:&lt;/P&gt;
&lt;UL&gt;
&lt;LI value="1"&gt;0 for Monday&lt;/LI&gt;
&lt;LI value="2"&gt;1 for Tuesday&lt;/LI&gt;
&lt;LI value="3"&gt;2 for Wednesday&lt;/LI&gt;
&lt;LI value="4"&gt;3 for Thursday&lt;/LI&gt;
&lt;LI value="5"&gt;4 for Friday&lt;/LI&gt;
&lt;LI value="6"&gt;5 for Saturday&lt;/LI&gt;
&lt;LI value="7"&gt;6 for Sunday&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The integer returned by the function will now use the first day of the week that you set with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;first_week_day&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;as base (0).&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
    <pubDate>Mon, 07 Jan 2019 12:21:17 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2019-01-07T12:21:17Z</dc:date>
    <item>
      <title>Week start day</title>
      <link>https://community.qlik.com/t5/QlikView/Week-start-day/m-p/1527000#M440833</link>
      <description>&lt;P&gt;Hi Friends&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have following script in my master calendar to create weeks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;'Week'&amp;amp;Ceil(Day(TRN_DATE)/7) as&amp;nbsp; MonthlyWeek,&lt;/P&gt;&lt;P&gt;I note that in the above syntax&amp;nbsp; week start day is Monday. I want to make the start day as Sunday. Kindly help me to modify the script to suit my requirement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 11:47:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-start-day/m-p/1527000#M440833</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2019-01-07T11:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Week start day</title>
      <link>https://community.qlik.com/t5/QlikView/Week-start-day/m-p/1527037#M440834</link>
      <description>&lt;P&gt;I think you should use the WeekStart function&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/weekstart.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/weekstart.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="TableStyle-tableGrid" cellspacing="0"&gt;
&lt;THEAD&gt;
&lt;TR class="Head-Header1"&gt;
&lt;TH class="HeadI--"&gt;Argument&lt;/TH&gt;
&lt;TH class="HeadG--"&gt;Description&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR class="Body-Body1"&gt;
&lt;TD class="BodyI--"&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;date&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD class="BodyG--"&gt;The date to evaluate.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR class="Body-Body1"&gt;
&lt;TD class="BodyI--"&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;period_no&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD class="BodyG--"&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;shift&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is an integer, where the value 0 indicates the week which contains&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;date&lt;/SPAN&gt;. Negative values in shift indicate preceding weeks and positive values indicate succeeding weeks.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR class="Body-Body1"&gt;
&lt;TD class="BodyC--"&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;first_week_day&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD class="BodyA--"&gt;
&lt;P&gt;If you don't specify&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;first_week_day&lt;/SPAN&gt;, the value of variable&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;FirstWeekDay&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;will be used as the first day of the week.&lt;/P&gt;
&lt;P&gt;If you want to use another day as the first day of the week, set&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;first_week_day&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to:&lt;/P&gt;
&lt;UL&gt;
&lt;LI value="1"&gt;0 for Monday&lt;/LI&gt;
&lt;LI value="2"&gt;1 for Tuesday&lt;/LI&gt;
&lt;LI value="3"&gt;2 for Wednesday&lt;/LI&gt;
&lt;LI value="4"&gt;3 for Thursday&lt;/LI&gt;
&lt;LI value="5"&gt;4 for Friday&lt;/LI&gt;
&lt;LI value="6"&gt;5 for Saturday&lt;/LI&gt;
&lt;LI value="7"&gt;6 for Sunday&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The integer returned by the function will now use the first day of the week that you set with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="statement" data-mc-conditions="Primary.NotToTranslate"&gt;first_week_day&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;as base (0).&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Mon, 07 Jan 2019 12:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-start-day/m-p/1527037#M440834</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2019-01-07T12:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Week start day</title>
      <link>https://community.qlik.com/t5/QlikView/Week-start-day/m-p/1527044#M440835</link>
      <description>&lt;P&gt;What exactly are you trying to get here? Week Numbers with respect to Months?&lt;/P&gt;&lt;P&gt;Jan 1st - Jan 6th - Week1&lt;BR /&gt;Jan 7th - Jan 13th - Week2&lt;BR /&gt;Jan 14th - Jan 20th - Week3&lt;BR /&gt;Jan 21st - Jan 27th - Week4&lt;BR /&gt;Jan 28th - Jan 31st - Week5&lt;BR /&gt;Feb 1st - Feb 3rd - Week1&lt;/P&gt;&lt;P&gt;and so on...?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 12:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-start-day/m-p/1527044#M440835</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-07T12:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Week start day</title>
      <link>https://community.qlik.com/t5/QlikView/Week-start-day/m-p/1527047#M440836</link>
      <description>&lt;P&gt;Yes Sunny,&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is exactly what I want&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 12:37:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-start-day/m-p/1527047#M440836</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2019-01-07T12:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Week start day</title>
      <link>https://community.qlik.com/t5/QlikView/Week-start-day/m-p/1527186#M440837</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;I have tried with &lt;STRONG&gt;SET FirstWeekDay=0;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt; &amp;nbsp;but it does&amp;nbsp; not work. Kindly advise me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 16:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-start-day/m-p/1527186#M440837</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2019-01-07T16:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Week start day</title>
      <link>https://community.qlik.com/t5/QlikView/Week-start-day/m-p/1527745#M440838</link>
      <description>&lt;P&gt;Could u pls share a sample&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 13:12:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-start-day/m-p/1527745#M440838</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2019-01-08T13:12:21Z</dc:date>
    </item>
  </channel>
</rss>

