<?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 Week Ending in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Week-Ending/m-p/154490#M31080</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent, thanks very much for your help with this Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Feb 2010 16:53:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-02-22T16:53:48Z</dc:date>
    <item>
      <title>Week Ending</title>
      <link>https://community.qlik.com/t5/QlikView/Week-Ending/m-p/154486#M31076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am looking at creating a week ending date using a date field named "BinArrived" - can anyone help? I would like to use Friday as the week ending point for this - does anyone know the QlikView SQL that would do this?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 15:11:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-Ending/m-p/154486#M31076</guid>
      <dc:creator />
      <dc:date>2010-02-22T15:11:46Z</dc:date>
    </item>
    <item>
      <title>Week Ending</title>
      <link>https://community.qlik.com/t5/QlikView/Week-Ending/m-p/154487#M31077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;would use WeekEnd(BinArrived)-2 (to get from Sunday to Friday)&lt;/P&gt;&lt;P&gt;Below is from the help:&lt;/P&gt;&lt;H4 style="background-color:#c0c0c0;"&gt;WeekEnd&lt;A id="WeekEnd" name="WeekEnd"&gt;&lt;/A&gt;( date [, shift = 0 [,weekoffset = 0]] )&lt;/H4&gt;&lt;P style="background-color:transparent;margin-bottom:0px;margin-left:40px;"&gt;Returns a value corresponding to a timestamp with the last millisecond of the last date ( Sunday ) of the calendar week containing date The default output format will be the DateFormat set in the script. Shift is an integer, where the value 0 indicates the week which contains date. Negative values in shift indicate preceding weeks and positive values indicate succeeding weeks. If you want to work with weeks not starting midnight between Sunday and Monday, you may indicate an offset in days in weekoffset. This may be given as a real number indicating days and/or fractions of a day.&lt;/P&gt;&lt;H2 style="background-color:transparent;"&gt;Example:&lt;/H2&gt;&lt;P style="background-color:transparent;margin-bottom:0px;margin-left:40px;"&gt;weekend ( '2006-01-12' ) returns '2006-01-15' with an underlying numeric value corresponding to '2006-01-15 23:59:59.999'&lt;/P&gt;&lt;P style="background-color:transparent;margin-bottom:0px;margin-left:40px;"&gt;weekend ( '2006-01-12', -1 ) returns '2006-01-08' with an underlying numeric value corresponding to '2006-01-08 23:59:59.999'&lt;/P&gt;&lt;P style="background-color:transparent;margin-bottom:0px;margin-left:40px;"&gt;weekend ( '2006-01-12', 0, 1 ) returns '2006-01-16' with an underlying numeric value corresponding to '2006-01-16 23:59:59.999'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 15:17:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-Ending/m-p/154487#M31077</guid>
      <dc:creator />
      <dc:date>2010-02-22T15:17:55Z</dc:date>
    </item>
    <item>
      <title>Week Ending</title>
      <link>https://community.qlik.com/t5/QlikView/Week-Ending/m-p/154488#M31078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent - many thanks for this.&lt;/P&gt;&lt;P&gt;I am assuming that to get the week commencing date then I would do WeekEnd(BinArrived),0,1 as per the help to move the date to Monday, or is their a more efficient (or best practice) way of getting the week commencing date (using Monday as the week commencing)&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 15:47:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-Ending/m-p/154488#M31078</guid>
      <dc:creator />
      <dc:date>2010-02-22T15:47:24Z</dc:date>
    </item>
    <item>
      <title>Week Ending</title>
      <link>https://community.qlik.com/t5/QlikView/Week-Ending/m-p/154489#M31079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;glad it works for you. For W/C I would use (as a matter of personal preference simply WeekEnd(BinArrived)+1.&lt;/P&gt;&lt;P&gt;Cheers, lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 16:36:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-Ending/m-p/154489#M31079</guid>
      <dc:creator />
      <dc:date>2010-02-22T16:36:23Z</dc:date>
    </item>
    <item>
      <title>Week Ending</title>
      <link>https://community.qlik.com/t5/QlikView/Week-Ending/m-p/154490#M31080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent, thanks very much for your help with this Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 16:53:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-Ending/m-p/154490#M31080</guid>
      <dc:creator />
      <dc:date>2010-02-22T16:53:48Z</dc:date>
    </item>
  </channel>
</rss>

