<?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: How to write Set Analysis to select the previous two weeks (Monday to Sunday) from  the current date? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-write-Set-Analysis-to-select-the-previous-two-weeks/m-p/1252429#M461689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny have a good Christmas &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2016 12:56:41 GMT</pubDate>
    <dc:creator>jblomqvist</dc:creator>
    <dc:date>2016-12-13T12:56:41Z</dc:date>
    <item>
      <title>How to write Set Analysis to select the previous two weeks (Monday to Sunday) from  the current date?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-Set-Analysis-to-select-the-previous-two-weeks/m-p/1252427#M461687</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;&lt;/P&gt;&lt;P&gt;How to write Set Analysis to select the previous two weeks (Monday to Sunday) from the current date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example today is 13th December, I need Set Analysis to select the previous two weeks for me automatically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="146458" alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/146458_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. November 28th (Monday) to 11th (Sunday) December on the above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I were to visit my QlikView application tomorrow (14th) it should still select the same date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I was to access the app next week, it should now select December 5th (Monday) to 18th (Sunday) December.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know how to get set analysis to automatically select this type of date range please? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use Date as a field name example for your example code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 11:41:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-Set-Analysis-to-select-the-previous-two-weeks/m-p/1252427#M461687</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2016-12-13T11:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Set Analysis to select the previous two weeks (Monday to Sunday) from  the current date?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-Set-Analysis-to-select-the-previous-two-weeks/m-p/1252428#M461688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should be something like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;='&amp;gt;=' &amp;amp; WeekStart(Today(1), -2) &amp;amp; '&amp;lt;=' &amp;amp; WeekEnd(Today(1), -1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/146475_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure you set your environmental variable for FirstWeekDay equal to 0 and reload your application to take that variable into effect.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET FirstWeekDay=0;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/146476_Capture.PNG" style="height: 212px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 12:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-Set-Analysis-to-select-the-previous-two-weeks/m-p/1252428#M461688</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-13T12:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to write Set Analysis to select the previous two weeks (Monday to Sunday) from  the current date?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-Set-Analysis-to-select-the-previous-two-weeks/m-p/1252429#M461689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny have a good Christmas &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 12:56:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-Set-Analysis-to-select-the-previous-two-weeks/m-p/1252429#M461689</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2016-12-13T12:56:41Z</dc:date>
    </item>
  </channel>
</rss>

