<?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: Adding Week_# field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-Week-field/m-p/1255114#M852502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="script_token" style="font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-weight: bold; font-size: 12px; color: #0f0f0f;"&gt;WeekName(&lt;/SPAN&gt;&lt;SPAN class="bnf_token" style="font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: #0f0f0f;"&gt;date ,0, 4&lt;/SPAN&gt;&lt;SPAN class="statement" style="font-weight: bold; color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;) as Week&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;SPAN class="statement" style="font-weight: bold; color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Feb 2017 19:57:39 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2017-02-23T19:57:39Z</dc:date>
    <item>
      <title>Adding Week_# field</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Week-field/m-p/1255112#M852500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to add a column/field showing the weeks in a year where the first week starts on 1/1/2017 and end on 1/5/2017.&lt;/P&gt;&lt;P&gt;Each subsequent week then needs to start on a Friday and end on a Thursday.&lt;/P&gt;&lt;P&gt;Week_1 is 1/1/2017 to 1/5/2017&lt;/P&gt;&lt;P&gt;Week_2 is 1/6/2017 to 1/12/2017&lt;/P&gt;&lt;P&gt;Week_3 is 1/13/2017 to 1/19/2017........... &lt;/P&gt;&lt;P&gt;I also have another date field in the script called "POST DATE".&lt;/P&gt;&lt;P&gt;I am presently using the script below but would like to know if there is a better way to add this field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;IF(Match([POST DATE],'1/1/2017','1/2/2017','1/3/2017','1/4/2017','1/5/2017'),'WEEK_1', &lt;/P&gt;&lt;P&gt;IF(Match([POST DATE],'1/6/2017','1/7/2017','1/8/2017','1/9/2017','1/10/2017','1/11/2017','1/12/2017'),'WEEK_2',&lt;/P&gt;&lt;P&gt;IF(Match([POST DATE],'1/13/2017','1/14/2017','1/15/2017','1/16/2017','1/17/2017','1/18/2017','1/19/2017'),'WEEK_3',&lt;/P&gt;&lt;P&gt;'NA'))) AS WEEK# &lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Week-field/m-p/1255112#M852500</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Week_# field</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Week-field/m-p/1255113#M852501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3545"&gt;Redefining the Week Numbers&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 19:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Week-field/m-p/1255113#M852501</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2017-02-23T19:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Week_# field</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Week-field/m-p/1255114#M852502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="script_token" style="font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-weight: bold; font-size: 12px; color: #0f0f0f;"&gt;WeekName(&lt;/SPAN&gt;&lt;SPAN class="bnf_token" style="font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: #0f0f0f;"&gt;date ,0, 4&lt;/SPAN&gt;&lt;SPAN class="statement" style="font-weight: bold; color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;) as Week&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;SPAN class="statement" style="font-weight: bold; color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 19:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Week-field/m-p/1255114#M852502</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2017-02-23T19:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Week_# field</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Week-field/m-p/1255115#M852503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change backend script,&lt;/P&gt;&lt;P&gt;SET DayNames='Fri;Sat;Sun;&lt;SPAN style="font-size: 13.3333px;"&gt;Mon;Tue;Wed;Thu;&lt;/SPAN&gt;';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WeekStart(date) &amp;amp; ' to ' &amp;amp; WeekEnd(Date)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AutoNumber(Year &amp;amp; Month &amp;amp; WeekStart(Date) &amp;amp; WeekEnd(Date)) as WeekNumber&lt;/P&gt;&lt;P&gt;it will return only Week number as 1,2,3,4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 12:47:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Week-field/m-p/1255115#M852503</guid>
      <dc:creator>muthukumar77</dc:creator>
      <dc:date>2017-02-24T12:47:55Z</dc:date>
    </item>
  </channel>
</rss>

