<?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: Fields comparison of multiple files in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fields-comparison-of-multiple-files/m-p/761689#M666582</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try the Peek() solution and it work but not 100% for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I have a single valur for "Besoin_CMD_Corrige" field, the peek() function return a wrong date but when It is not single that's work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I only success with the Peek() function when I use it in a chart as expression, not in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards Jérôme&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Dec 2014 14:55:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-19T14:55:48Z</dc:date>
    <item>
      <title>Fields comparison of multiple files</title>
      <link>https://community.qlik.com/t5/QlikView/Fields-comparison-of-multiple-files/m-p/761687#M666580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello everybody.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I don't know if this question is already answered but my searches stayed unsuccessful, so I need help, please.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I have to compare a date field value of multiple Excel files.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;It work like this :&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I load date field from Excel files with wildcard and this field (date) can change on every Excel file.&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;FROM &lt;SPAN style="font-size: 8pt;"&gt;&lt;U&gt; &lt;/U&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Every Excel file in named xxx_dd-mm-yyy.xls, and I make a field date_export with each filename :&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;Date&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Right&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FileBaseName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(), 10), 'DD-MM-YYYY')) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date_export &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;So for 1 date_export line I have 1 field date as &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Besoin_CMD_Corrige&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;How can I compare the &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Besoin_CMD_Corrige &lt;SPAN style="color: #808080; font-size: 10pt;"&gt;of the the last Excel file with the last -1 as a new fiels ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #808080; font-size: 10pt;"&gt;I need : if(Besoin_CMD_Corrige &lt;SPAN style="color: #ff0000;"&gt;of&lt;/SPAN&gt; max(date_export) &amp;lt; Besoin_CMD_Corrige o&lt;SPAN style="color: #ff0000;"&gt;f&lt;/SPAN&gt; max(date_export) -1,'earlier deadline',null()) but I don't know how ti implement the "of".&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #808080; font-size: 10pt;"&gt;Community, thanks in advance.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #808080; font-size: 10pt;"&gt;Jérôme&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 15:00:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fields-comparison-of-multiple-files/m-p/761687#M666580</guid>
      <dc:creator />
      <dc:date>2014-12-18T15:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Fields comparison of multiple files</title>
      <link>https://community.qlik.com/t5/QlikView/Fields-comparison-of-multiple-files/m-p/761688#M666581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jerome,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not quite clear what your scenario is, but going by what you say, you just need to draw that date ("Besoin_CMD_Corrige") from the record with the largest date?&lt;/P&gt;&lt;P&gt;That's rather easy:&lt;/P&gt;&lt;P&gt;- Sort your table (only possible in a RESIDENT LOAD, not in the primary LOAD) by that date in asc. order&lt;/P&gt;&lt;P&gt;=&amp;gt; The largest date will be the very last record.&lt;/P&gt;&lt;P&gt;- Then use the PEEK() function to get that date into a variable - without a number as parameter (only the fieldname as parameter), it automatically uses the record that was loaded the very last - that would then be the one with the largest date.&lt;/P&gt;&lt;P&gt;=&amp;gt; You can use that variable for your comparison.&lt;/P&gt;&lt;P&gt;HTH.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 15:10:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fields-comparison-of-multiple-files/m-p/761688#M666581</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-12-18T15:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Fields comparison of multiple files</title>
      <link>https://community.qlik.com/t5/QlikView/Fields-comparison-of-multiple-files/m-p/761689#M666582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try the Peek() solution and it work but not 100% for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I have a single valur for "Besoin_CMD_Corrige" field, the peek() function return a wrong date but when It is not single that's work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I only success with the Peek() function when I use it in a chart as expression, not in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards Jérôme&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 14:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fields-comparison-of-multiple-files/m-p/761689#M666582</guid>
      <dc:creator />
      <dc:date>2014-12-19T14:55:48Z</dc:date>
    </item>
  </channel>
</rss>

