<?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 Only display data for predetermined week range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Only-display-data-for-predetermined-week-range/m-p/385451#M485605</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;I am looking at introducing i) a slider where I could manually select a week number e.g. “w06, 2013” and ii)four buttons each one of which selects a predetermined time period (please see below) so that when I click on Button 2, graphs would display data from “w46, 2012” to “w06, 2013” (week 6 of 2013 being the most recent week in the 13-week range).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Button 1: " All Weeks"&lt;/P&gt;&lt;P&gt;Button 2: "13 Weeks Max"&lt;/P&gt;&lt;P&gt;Button 3: "26 Weeks Max",&lt;/P&gt;&lt;P&gt;Button 4: "52 Weeks Max”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to QlikView and trying to do that with set analysis and although I have come across a few relevant articles in the Community and applied the suggestions, I fail to span back to previous year’s (2012) data. Could you suggest a way to do the above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Thank you very much, your help is very appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Panos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To help you:&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;Within my data, the Week number is named based on the convention “YearWeek” so that it is always ascending. So the 48&lt;SUP&gt;th&lt;/SUP&gt; week of 2012 is 201248, the 3&lt;SUP&gt;rd&lt;/SUP&gt; week of 2013 is called 201303 and so on. As 201303 is not that user friendly, I have introduced variables “vWeekName=&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;right&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;,2)&lt;/SPAN&gt;” (so, 201303 becomes 03) and “vWeekYearName=&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;'w' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;right&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;,2) &amp;amp; ', ' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;,4) &lt;/SPAN&gt;(so, 201303 becomes w03, 2013) and I use these interchangeably in the qvw (the first variable in the graphs and the second variable in the calendar/slider).&lt;/LI&gt;&lt;LI&gt;I want the default time period to be “All Weeks” and include all weeks’ data up to the most recent one.&lt;/LI&gt;&lt;LI&gt;Please note that the most recent one is usually not the current week, e.g.week 17 for today, 22 April 2013, as there is usually a delay of a few weeks in loading the data. The current week is defined by variable vCurrentWeek&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;MaxString&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;) &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Apr 2013 14:12:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-22T14:12:08Z</dc:date>
    <item>
      <title>Only display data for predetermined week range</title>
      <link>https://community.qlik.com/t5/QlikView/Only-display-data-for-predetermined-week-range/m-p/385451#M485605</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;I am looking at introducing i) a slider where I could manually select a week number e.g. “w06, 2013” and ii)four buttons each one of which selects a predetermined time period (please see below) so that when I click on Button 2, graphs would display data from “w46, 2012” to “w06, 2013” (week 6 of 2013 being the most recent week in the 13-week range).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Button 1: " All Weeks"&lt;/P&gt;&lt;P&gt;Button 2: "13 Weeks Max"&lt;/P&gt;&lt;P&gt;Button 3: "26 Weeks Max",&lt;/P&gt;&lt;P&gt;Button 4: "52 Weeks Max”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to QlikView and trying to do that with set analysis and although I have come across a few relevant articles in the Community and applied the suggestions, I fail to span back to previous year’s (2012) data. Could you suggest a way to do the above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Thank you very much, your help is very appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Panos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To help you:&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;Within my data, the Week number is named based on the convention “YearWeek” so that it is always ascending. So the 48&lt;SUP&gt;th&lt;/SUP&gt; week of 2012 is 201248, the 3&lt;SUP&gt;rd&lt;/SUP&gt; week of 2013 is called 201303 and so on. As 201303 is not that user friendly, I have introduced variables “vWeekName=&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;right&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;,2)&lt;/SPAN&gt;” (so, 201303 becomes 03) and “vWeekYearName=&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;'w' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;right&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;,2) &amp;amp; ', ' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;,4) &lt;/SPAN&gt;(so, 201303 becomes w03, 2013) and I use these interchangeably in the qvw (the first variable in the graphs and the second variable in the calendar/slider).&lt;/LI&gt;&lt;LI&gt;I want the default time period to be “All Weeks” and include all weeks’ data up to the most recent one.&lt;/LI&gt;&lt;LI&gt;Please note that the most recent one is usually not the current week, e.g.week 17 for today, 22 April 2013, as there is usually a delay of a few weeks in loading the data. The current week is defined by variable vCurrentWeek&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;MaxString&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;) &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 14:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-display-data-for-predetermined-week-range/m-p/385451#M485605</guid>
      <dc:creator />
      <dc:date>2013-04-22T14:12:08Z</dc:date>
    </item>
  </channel>
</rss>

