<?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: Include years between Start Date and End Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Include-years-between-Start-Date-and-End-Date/m-p/43459#M789648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15175923204157824 jive_text_macro" jivemacro_uid="_15175923204157824"&gt;
&lt;P&gt;&lt;STRONG&gt;Temp:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;load * Inline [&lt;/P&gt;
&lt;P&gt;Student 1d, Student&amp;nbsp; Name, Start Date, End Date&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 1,A,2012-04-01,2016-12-01&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 2,B,2017-01-03,2017-01-31&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 3,C,2016-04-13,2019-02-02];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Fact:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;load *, Year(Date) as Year;&lt;/P&gt;
&lt;P&gt;LOAD [Student 1d], [Student&amp;nbsp; Name],&lt;/P&gt;
&lt;P&gt;Date([Start Date]+iterno()-1) as Date&lt;/P&gt;
&lt;P&gt;resident Temp while [Start Date]+IterNo()-1 &amp;lt;=[End Date];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;drop table Temp;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/192374_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Feb 2018 17:27:29 GMT</pubDate>
    <dc:creator>devarasu07</dc:creator>
    <dc:date>2018-02-02T17:27:29Z</dc:date>
    <item>
      <title>Include years between Start Date and End Date</title>
      <link>https://community.qlik.com/t5/QlikView/Include-years-between-Start-Date-and-End-Date/m-p/43458#M789646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Table stating student details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Student 1d, Student&amp;nbsp; Name, Start Date, End Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 1,A,'2012-04-01','2016-12-01'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 2,B,'2017-01-03','2017-01-31'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 3,C,'2016-04-13','2019-02-02'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a dropdown stating Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After year selection, I should only see students active in that year&lt;/P&gt;&lt;P&gt;for example :&lt;/P&gt;&lt;P&gt;student A should be active for year selection of 2012,2013,2014,2015,2016&lt;/P&gt;&lt;P&gt;student B should be active for year selection of 2017&lt;/P&gt;&lt;P&gt;student C should be active for year selection of 2016,2017,2018,2019&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly advise the formula used for creating the Year dropdown.&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/Include-years-between-Start-Date-and-End-Date/m-p/43458#M789646</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Include years between Start Date and End Date</title>
      <link>https://community.qlik.com/t5/QlikView/Include-years-between-Start-Date-and-End-Date/m-p/43459#M789648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15175923204157824 jive_text_macro" jivemacro_uid="_15175923204157824"&gt;
&lt;P&gt;&lt;STRONG&gt;Temp:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;load * Inline [&lt;/P&gt;
&lt;P&gt;Student 1d, Student&amp;nbsp; Name, Start Date, End Date&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 1,A,2012-04-01,2016-12-01&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 2,B,2017-01-03,2017-01-31&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 3,C,2016-04-13,2019-02-02];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Fact:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;load *, Year(Date) as Year;&lt;/P&gt;
&lt;P&gt;LOAD [Student 1d], [Student&amp;nbsp; Name],&lt;/P&gt;
&lt;P&gt;Date([Start Date]+iterno()-1) as Date&lt;/P&gt;
&lt;P&gt;resident Temp while [Start Date]+IterNo()-1 &amp;lt;=[End Date];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;drop table Temp;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/192374_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 17:27:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-years-between-Start-Date-and-End-Date/m-p/43459#M789648</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2018-02-02T17:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Include years between Start Date and End Date</title>
      <link>https://community.qlik.com/t5/QlikView/Include-years-between-Start-Date-and-End-Date/m-p/43460#M789650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Devarasu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked Exactly as I wanted it to be.... However I can see more latency in dashboard, as it takes more time to load my pivot every time I make any selections. Can you please suggest&amp;nbsp; how that could be avoided?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sonal Sabhnani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 11:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-years-between-Start-Date-and-End-Date/m-p/43460#M789650</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-05T11:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Include years between Start Date and End Date</title>
      <link>https://community.qlik.com/t5/QlikView/Include-years-between-Start-Date-and-End-Date/m-p/43461#M789651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you tried with Straight table instead of pivot table?(usually table/straight table is much faster than pivot ) &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌ can you share your thoughts on this issue. Thanks &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;Regards,&lt;BR /&gt;Deva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 17:13:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-years-between-Start-Date-and-End-Date/m-p/43461#M789651</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2018-02-05T17:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Include years between Start Date and End Date</title>
      <link>https://community.qlik.com/t5/QlikView/Include-years-between-Start-Date-and-End-Date/m-p/43462#M789652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the problem could be related to the number of rows that were present even before the while statement was implemented. If there were 1 million rows of data points in your fact table, implementing while could very easily multiple that data based on how many years each student are present. There is no easy way to handle this kind of situation... except for may be creating a link table with all the years, rather than using your fact table because fact table might have 30 fields, and it might not be a good idea to multiple all of them. Rather, just duplicate the key field and the new year field which might give somewhat better performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 17:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-years-between-Start-Date-and-End-Date/m-p/43462#M789652</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-05T17:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Include years between Start Date and End Date</title>
      <link>https://community.qlik.com/t5/QlikView/Include-years-between-Start-Date-and-End-Date/m-p/43463#M789653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, &lt;A href="https://community.qlik.com/qlik-blogpost/3037"&gt;IntervalMatch&lt;/A&gt; with a master calendar might be something else which can be tested&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 17:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-years-between-Start-Date-and-End-Date/m-p/43463#M789653</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-05T17:27:18Z</dc:date>
    </item>
  </channel>
</rss>

