<?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: Can anyone help please... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-anyone-help-please/m-p/1750618#M453562</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/35608"&gt;@samvile18&lt;/a&gt;&amp;nbsp; One solution :&lt;/P&gt;&lt;P&gt;Input table :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 471px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41910i6F8DF4A3ED8C0197/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Input:

load * inline [
Sheme Number,DueDate,CompletedDate
F47478,01/02/2019,01/02/2019
F47478,01/04/2019,04/02/2019
F47478,01/05/2019,05/02/2019
F47478,07/02/2019,10/08/2020
F47478,01/12/2020,
F47478,01/03/2021,
F47478,07/03/2021,
F47478,07/03/2022,
F47478,07/07/2022,
F47478,07/05/2022,
F47478,07/04/2022,
];

Tmp:
noconcatenate
load [Sheme Number],Date(Max(CompletedDate,1)) as [Max CompletedDate] resident Input where len(trim(CompletedDate))&amp;gt;0 group by [Sheme Number];
left join
load [Sheme Number],Date(Min(DueDate,1)) as [Next Due],Date(Min(DueDate,2)) as [Next Due+1] resident Input where len(trim(CompletedDate))=0 group by [Sheme Number];


drop table Input;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 621px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41911iB9ABCFC13BAFDAB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Oct 2020 09:49:44 GMT</pubDate>
    <dc:creator>Taoufiq_Zarra</dc:creator>
    <dc:date>2020-10-08T09:49:44Z</dc:date>
    <item>
      <title>Can anyone help please...</title>
      <link>https://community.qlik.com/t5/QlikView/Can-anyone-help-please/m-p/1750608#M453561</link>
      <description>&lt;P&gt;Morning all,&lt;/P&gt;&lt;P&gt;I have the following table in Qlik that I need to add two more columns to. I'm struggling a bit with the syntax, either in the script or within the expression of a table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QlikTable.JPG" style="width: 520px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41906i84AB2EAF9216B3AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="QlikTable.JPG" alt="QlikTable.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I need one line per scheme that shows;&lt;/P&gt;&lt;P&gt;SchemeNo - Max(CompletedDate) - Next Due - Next Due+1&lt;/P&gt;&lt;P&gt;F47478 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 10/08/2020 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 01/12/2020&amp;nbsp; 01/03/2021&lt;/P&gt;&lt;P&gt;Can anyone suggest how I can achieve this please?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help is much appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 09:28:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-anyone-help-please/m-p/1750608#M453561</guid>
      <dc:creator>samvile18</dc:creator>
      <dc:date>2020-10-08T09:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help please...</title>
      <link>https://community.qlik.com/t5/QlikView/Can-anyone-help-please/m-p/1750618#M453562</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/35608"&gt;@samvile18&lt;/a&gt;&amp;nbsp; One solution :&lt;/P&gt;&lt;P&gt;Input table :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 471px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41910i6F8DF4A3ED8C0197/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Input:

load * inline [
Sheme Number,DueDate,CompletedDate
F47478,01/02/2019,01/02/2019
F47478,01/04/2019,04/02/2019
F47478,01/05/2019,05/02/2019
F47478,07/02/2019,10/08/2020
F47478,01/12/2020,
F47478,01/03/2021,
F47478,07/03/2021,
F47478,07/03/2022,
F47478,07/07/2022,
F47478,07/05/2022,
F47478,07/04/2022,
];

Tmp:
noconcatenate
load [Sheme Number],Date(Max(CompletedDate,1)) as [Max CompletedDate] resident Input where len(trim(CompletedDate))&amp;gt;0 group by [Sheme Number];
left join
load [Sheme Number],Date(Min(DueDate,1)) as [Next Due],Date(Min(DueDate,2)) as [Next Due+1] resident Input where len(trim(CompletedDate))=0 group by [Sheme Number];


drop table Input;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 621px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41911iB9ABCFC13BAFDAB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 09:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-anyone-help-please/m-p/1750618#M453562</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-10-08T09:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help please...</title>
      <link>https://community.qlik.com/t5/QlikView/Can-anyone-help-please/m-p/1750720#M453568</link>
      <description>&lt;P&gt;Yep - outstanding, thanks very much for your time.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 13:42:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-anyone-help-please/m-p/1750720#M453568</guid>
      <dc:creator>samvile18</dc:creator>
      <dc:date>2020-10-08T13:42:02Z</dc:date>
    </item>
  </channel>
</rss>

