<?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 Number Before Certain Week in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Week-Number-Before-Certain-Week/m-p/130172#M457806</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So we have an event that starts on 9/16/2018&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We want to bucket a DATEFIELD by the week it falls in leading up to the event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the week of 9/9/2018 (and any date that falls in that week) would = 1 because it is one week before the week of the event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We want to be able to build this all the out to 50+ weeks before event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Aug 2018 15:56:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-10T15:56:02Z</dc:date>
    <item>
      <title>Week Number Before Certain Week</title>
      <link>https://community.qlik.com/t5/QlikView/Week-Number-Before-Certain-Week/m-p/130172#M457806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So we have an event that starts on 9/16/2018&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We want to bucket a DATEFIELD by the week it falls in leading up to the event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the week of 9/9/2018 (and any date that falls in that week) would = 1 because it is one week before the week of the event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We want to be able to build this all the out to 50+ weeks before event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 15:56:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-Number-Before-Certain-Week/m-p/130172#M457806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-10T15:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Week Number Before Certain Week</title>
      <link>https://community.qlik.com/t5/QlikView/Week-Number-Before-Certain-Week/m-p/130173#M457807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you looking to generate these dates or are looking to flag them somehow?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 16:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-Number-Before-Certain-Week/m-p/130173#M457807</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-08-10T16:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Week Number Before Certain Week</title>
      <link>https://community.qlik.com/t5/QlikView/Week-Number-Before-Certain-Week/m-p/130174#M457808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just looking to assign a number to it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, the number should = the week before the event date like ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 week before date&lt;/P&gt;&lt;P&gt;2 weeks before date&lt;/P&gt;&lt;P&gt;3 weeks before date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 16:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-Number-Before-Certain-Week/m-p/130174#M457808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-10T16:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Week Number Before Certain Week</title>
      <link>https://community.qlik.com/t5/QlikView/Week-Number-Before-Certain-Week/m-p/130175#M457809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this something you need in the script? In a chart? I am not entirely sure I understand the requirement well enough to suggest anything right now... may be sample or sample data might help understand the issue better&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 16:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-Number-Before-Certain-Week/m-p/130175#M457809</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-08-10T16:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Week Number Before Certain Week</title>
      <link>https://community.qlik.com/t5/QlikView/Week-Number-Before-Certain-Week/m-p/130176#M457810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to do it in the load script&lt;/P&gt;&lt;P&gt;Right now it is manual ... see below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(NewResponseDate &amp;gt;= '9/4/2016' AND NewResponseDate &amp;lt; '9/11/2016', 1, 0) as WeekBefore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I have to build an IF statement with 50 lines if I want to go back 50 weeks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there should be an easier way, but maybe I am wrong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 16:58:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-Number-Before-Certain-Week/m-p/130176#M457810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-10T16:58:25Z</dc:date>
    </item>
  </channel>
</rss>

