<?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 Loading latest data from overlapping files in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-latest-data-from-overlapping-files/m-p/555664#M207501</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;There MUST be a simple way to do this but I am having a brain malfunction today....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a set of data files which always load the last three months data as there can be a lag in the data being updated. How can I just load the latest set? E.g. We load three months every time, green shows finalised and orange shows draft but we would still want to report on draft where no finalised data exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;File Date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Jan&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Feb&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Mar&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Apr&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;May&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt; 02/04/2013&lt;/TD&gt;&lt;TD style="padding: 2px; background-color: #00ff00;"&gt;Final&lt;/TD&gt;&lt;TD style="padding: 2px; background-color: #ffcc00;"&gt;Draft&lt;/TD&gt;&lt;TD style="padding: 2px; background-color: #ffcc00;"&gt;Draft&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;25/05/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; background-color: #00ff00;"&gt;Final&lt;/TD&gt;&lt;TD style="padding: 2px; background-color: #ffcc00;"&gt;Draft&lt;/TD&gt;&lt;TD style="padding: 2px; background-color: #ffcc00;"&gt;Draft&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;06/06/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; background-color: #00ff00;"&gt;Final&lt;/TD&gt;&lt;TD style="padding: 2px; background-color: #ffcc00;"&gt;Draft&lt;/TD&gt;&lt;TD style="padding: 2px; background-color: #ffcc00;"&gt;Draft&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example if I ran a report after 25 May I would want to see:&lt;/P&gt;&lt;P&gt;Jan from the April file&lt;/P&gt;&lt;P&gt;Feb from the May file&lt;/P&gt;&lt;P&gt;Mar from the May file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then if I ran it after 06 June I would want to see:&lt;/P&gt;&lt;P&gt;Jan from April&lt;/P&gt;&lt;P&gt;Feb from May&lt;/P&gt;&lt;P&gt;March from June&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully that makes sense!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Oct 2013 13:54:43 GMT</pubDate>
    <dc:creator>adamdavi3s</dc:creator>
    <dc:date>2013-10-14T13:54:43Z</dc:date>
    <item>
      <title>Loading latest data from overlapping files</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-latest-data-from-overlapping-files/m-p/555664#M207501</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;There MUST be a simple way to do this but I am having a brain malfunction today....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a set of data files which always load the last three months data as there can be a lag in the data being updated. How can I just load the latest set? E.g. We load three months every time, green shows finalised and orange shows draft but we would still want to report on draft where no finalised data exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;File Date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Jan&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Feb&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Mar&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Apr&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;May&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt; 02/04/2013&lt;/TD&gt;&lt;TD style="padding: 2px; background-color: #00ff00;"&gt;Final&lt;/TD&gt;&lt;TD style="padding: 2px; background-color: #ffcc00;"&gt;Draft&lt;/TD&gt;&lt;TD style="padding: 2px; background-color: #ffcc00;"&gt;Draft&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;25/05/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; background-color: #00ff00;"&gt;Final&lt;/TD&gt;&lt;TD style="padding: 2px; background-color: #ffcc00;"&gt;Draft&lt;/TD&gt;&lt;TD style="padding: 2px; background-color: #ffcc00;"&gt;Draft&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;06/06/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; background-color: #00ff00;"&gt;Final&lt;/TD&gt;&lt;TD style="padding: 2px; background-color: #ffcc00;"&gt;Draft&lt;/TD&gt;&lt;TD style="padding: 2px; background-color: #ffcc00;"&gt;Draft&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example if I ran a report after 25 May I would want to see:&lt;/P&gt;&lt;P&gt;Jan from the April file&lt;/P&gt;&lt;P&gt;Feb from the May file&lt;/P&gt;&lt;P&gt;Mar from the May file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then if I ran it after 06 June I would want to see:&lt;/P&gt;&lt;P&gt;Jan from April&lt;/P&gt;&lt;P&gt;Feb from May&lt;/P&gt;&lt;P&gt;March from June&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully that makes sense!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 13:54:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-latest-data-from-overlapping-files/m-p/555664#M207501</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2013-10-14T13:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Loading latest data from overlapping files</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-latest-data-from-overlapping-files/m-p/555665#M207502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I could map the combination of data_date + max(file date) and use this somehow....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 15:03:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-latest-data-from-overlapping-files/m-p/555665#M207502</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2013-10-14T15:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Loading latest data from overlapping files</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-latest-data-from-overlapping-files/m-p/555666#M207503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So yes that worked, if anyone else comes across this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;within the table:&lt;/P&gt;&lt;P&gt;load filedate &amp;amp; datadate as id &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load a temp mapping table of:&lt;/P&gt;&lt;P&gt;mapdatadate,&lt;/P&gt;&lt;P&gt;max(filedate) as maxfiledate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load a final mapping table of data:&lt;/P&gt;&lt;P&gt;mapdatadate &amp;amp; maxfiledate as identifier&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then just do an inner keep where exists(identifier,id)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 08:55:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-latest-data-from-overlapping-files/m-p/555666#M207503</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2013-10-15T08:55:59Z</dc:date>
    </item>
  </channel>
</rss>

