<?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 Year End in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Year-End/m-p/1896234#M1217548</link>
    <description>&lt;P&gt;Hi Guys,&lt;/P&gt;
&lt;P&gt;I was wondering if it was possible in Qlik script to create multiple year intervals with year end dates from a single start date?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, We have an agreement start date, and want to project a set of years from that date,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Start date 01/07/17&amp;nbsp; - 1st End Date 01/07/18 - 2nd End Date 01/07/19 etc etc...for five years..&lt;/P&gt;
&lt;P&gt;Hope you can help&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mick.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Feb 2022 22:21:14 GMT</pubDate>
    <dc:creator>MickT</dc:creator>
    <dc:date>2022-02-22T22:21:14Z</dc:date>
    <item>
      <title>Year End</title>
      <link>https://community.qlik.com/t5/QlikView/Year-End/m-p/1896234#M1217548</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;
&lt;P&gt;I was wondering if it was possible in Qlik script to create multiple year intervals with year end dates from a single start date?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, We have an agreement start date, and want to project a set of years from that date,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Start date 01/07/17&amp;nbsp; - 1st End Date 01/07/18 - 2nd End Date 01/07/19 etc etc...for five years..&lt;/P&gt;
&lt;P&gt;Hope you can help&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mick.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 22:21:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-End/m-p/1896234#M1217548</guid>
      <dc:creator>MickT</dc:creator>
      <dc:date>2022-02-22T22:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Year End</title>
      <link>https://community.qlik.com/t5/QlikView/Year-End/m-p/1896782#M1217581</link>
      <description>&lt;P&gt;You could just use the AddYears() function here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarcoWedel_0-1645650574352.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72943iD036E21A66701F42/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarcoWedel_0-1645650574352.png" alt="MarcoWedel_0-1645650574352.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;table1:
LOAD *,
     AddYears(StartDate,IterNo()) as EndDate
Inline [
StartDate
01/07/17
02/08/18
03/09/19
]
While IterNo() &amp;lt;= 5;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope this helps&lt;/P&gt;
&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 21:11:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-End/m-p/1896782#M1217581</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-02-23T21:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Year End</title>
      <link>https://community.qlik.com/t5/QlikView/Year-End/m-p/1896807#M1217584</link>
      <description>&lt;P&gt;Hi Marco,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help, what you have given me is exactly what i need, however I cant seem to fit that into my script.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to adapt your inline data to my tables but not sure where to put the while statement?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry but havent used iterno() before..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example of data - LLINNO being my id, LLFVDT being the start date, LLAGNB being an agreement no..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;table1:&lt;BR /&gt;LOAD LLINNO,&lt;BR /&gt;AddYears(LLFVDT,IterNo()) as EndDate,&lt;BR /&gt;LLAGNB&lt;BR /&gt;&lt;BR /&gt;FROM&lt;BR /&gt;LTAGLI.qvd (qvd)&lt;BR /&gt;WHERE LLPOSX=0&lt;BR /&gt;While IterNo() &amp;lt;= 5; ??&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 00:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-End/m-p/1896807#M1217584</guid>
      <dc:creator>MickT</dc:creator>
      <dc:date>2022-02-24T00:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Year End</title>
      <link>https://community.qlik.com/t5/QlikView/Year-End/m-p/1897349#M1217601</link>
      <description>&lt;P&gt;You can't use Where and While together like this, but you can move either of them to a subsequent resident load or a preceding load:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LOAD *,
     AddYears(LLFVDT,IterNo()) as EndDate
While IterNo() &amp;lt;= 5;
LOAD LLINNO,
     LLFVDT,
     LLAGNB
FROM LTAGLI.qvd (qvd)
WHERE LLPOSX=0;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;hope this helps&lt;/P&gt;
&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 19:48:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-End/m-p/1897349#M1217601</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-02-24T19:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Year End</title>
      <link>https://community.qlik.com/t5/QlikView/Year-End/m-p/1897563#M1217613</link>
      <description>&lt;P&gt;I'm trying to adapt your inline data to my tables but not sure where to put the while statement?&amp;nbsp; &lt;A title="myhtspace" href="https://www.myhtspace.org/" target="_self"&gt;&lt;FONT color="#FFFFFF"&gt;myhtspace&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 04:31:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-End/m-p/1897563#M1217613</guid>
      <dc:creator>Davis69</dc:creator>
      <dc:date>2022-03-01T04:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Year End</title>
      <link>https://community.qlik.com/t5/QlikView/Year-End/m-p/1897597#M1217614</link>
      <description>&lt;P&gt;Marco, You Killed it!!&amp;nbsp; Applied to the production app and all worked brilliantly..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time and help. The preceding load was the key I was missing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this can help others in the future.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciate the learning..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;BR /&gt;Mick.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 10:31:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-End/m-p/1897597#M1217614</guid>
      <dc:creator>MickT</dc:creator>
      <dc:date>2022-02-25T10:31:01Z</dc:date>
    </item>
  </channel>
</rss>

