<?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: Load multiple files, compare and calculate days between dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-multiple-files-compare-and-calculate-days-between-dates/m-p/1673177#M727876</link>
    <description>&lt;P&gt;Did the post you received help you with things?&amp;nbsp; If so, be sure you circle back to the thread and use the Accept as Solution button on it to give the poster credit for the help and also let other Members know it did work.&amp;nbsp; If you are still working upon things, leave an update post, so folks can try to offer other potential solutions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2020 21:52:57 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2020-02-06T21:52:57Z</dc:date>
    <item>
      <title>Load multiple files, compare and calculate days between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Load-multiple-files-compare-and-calculate-days-between-dates/m-p/1669964#M727874</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am not sure if this is possible, but I will try to see if the Qlik hivemind has some advice/solution I can use.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am importing multiple files in from a single folder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LOAD 
     idNo, 
     message, 
     propertyNumber,
     currentDate
FROM
\\server\data\*&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The files will all contain the following information&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;idNo&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;message&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;propertyNumber&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;currentDate&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19667339&lt;/TD&gt;&lt;TD&gt;error message 1, 5555111&lt;/TD&gt;&lt;TD&gt;123456&lt;/TD&gt;&lt;TD&gt;2020-01-28&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19667326&lt;/TD&gt;&lt;TD&gt;error message 501, 5565546&lt;/TD&gt;&lt;TD&gt;654321&lt;/TD&gt;&lt;TD&gt;2020-01-28&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19667327&lt;/TD&gt;&lt;TD&gt;error message 99, 2342342&lt;/TD&gt;&lt;TD&gt;112233&lt;/TD&gt;&lt;TD&gt;2020-01-28&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The next file that is generated every week, could possibly contain the same information, with only the difference in the currentDate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;What I am looking for is a way for Qlik:&lt;/U&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Compare all the files loaded from the folder&lt;/LI&gt;&lt;LI&gt;Find the once with the same &lt;STRONG&gt;idNo&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;If the &lt;STRONG&gt;idNo&lt;/STRONG&gt; is the same, the look at the oldest &lt;STRONG&gt;min(currentDate)&amp;nbsp;&lt;/STRONG&gt;and the most recent &lt;STRONG&gt;max(currentDate)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Add values to the &lt;STRONG&gt;Load&lt;/STRONG&gt; statement&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So I would end up with a file looking like this:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;idNo&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;message&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;propertyNumber&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;min(currentDate)&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;max(currentDate)&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Days between min/max&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19667339&lt;/TD&gt;&lt;TD&gt;error message 1, 5555111&lt;/TD&gt;&lt;TD&gt;123456&lt;/TD&gt;&lt;TD&gt;2020-01-21&lt;/TD&gt;&lt;TD&gt;2020-01-28&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19667326&lt;/TD&gt;&lt;TD&gt;error message 501, 5565546&lt;/TD&gt;&lt;TD&gt;654321&lt;/TD&gt;&lt;TD&gt;2020-01-21&lt;/TD&gt;&lt;TD&gt;2020-01-28&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19667327&lt;/TD&gt;&lt;TD&gt;error message 99, 2342342&lt;/TD&gt;&lt;TD&gt;112233&lt;/TD&gt;&lt;TD&gt;2020-01-21&lt;/TD&gt;&lt;TD&gt;2020-01-28&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-multiple-files-compare-and-calculate-days-between-dates/m-p/1669964#M727874</guid>
      <dc:creator>varmekontrol</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load multiple files, compare and calculate days between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Load-multiple-files-compare-and-calculate-days-between-dates/m-p/1670227#M727875</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6298"&gt;@varmekontrol&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if it is what you are looking for, but after you load all the files you could do the following:&lt;/P&gt;&lt;P&gt;AUX:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;idNo,&lt;/P&gt;&lt;P&gt;message,&lt;/P&gt;&lt;P&gt;propertyNumber,&lt;/P&gt;&lt;P&gt;min(currentDate) as min_date,&lt;/P&gt;&lt;P&gt;max(currentDate) as max_date&lt;/P&gt;&lt;P&gt;Resident OriginalTable&lt;/P&gt;&lt;P&gt;Group by&amp;nbsp;&lt;/P&gt;&lt;P&gt;idNo,&lt;/P&gt;&lt;P&gt;message,&lt;/P&gt;&lt;P&gt;propertyNumber;&lt;/P&gt;&lt;P&gt;Drop Table OriginalTable;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 21:38:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-multiple-files-compare-and-calculate-days-between-dates/m-p/1670227#M727875</guid>
      <dc:creator>jberna26</dc:creator>
      <dc:date>2020-01-28T21:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Load multiple files, compare and calculate days between dates</title>
      <link>https://community.qlik.com/t5/QlikView/Load-multiple-files-compare-and-calculate-days-between-dates/m-p/1673177#M727876</link>
      <description>&lt;P&gt;Did the post you received help you with things?&amp;nbsp; If so, be sure you circle back to the thread and use the Accept as Solution button on it to give the poster credit for the help and also let other Members know it did work.&amp;nbsp; If you are still working upon things, leave an update post, so folks can try to offer other potential solutions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 21:52:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-multiple-files-compare-and-calculate-days-between-dates/m-p/1673177#M727876</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-02-06T21:52:57Z</dc:date>
    </item>
  </channel>
</rss>

