<?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: Filter during LOAD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filter-during-LOAD/m-p/698576#M668177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SCRIPT&lt;/STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Directory;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tmp:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD EXT_ID, Date_valid_from, STATUS, Value&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM RECALC_LOAD.xlsx (ooxml, embedded labels, table is Munka1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;final:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident tmp&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;where Peek(EXT_ID) &amp;lt;&amp;gt; EXT_ID or peek(Date_valid_from) &amp;lt;&amp;gt; Date_valid_from&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;order by EXT_ID, STATUS desc;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table tmp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESULT&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/69713_1.png" style="width: auto; height: auto;" /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 26 Oct 2014 21:52:51 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2014-10-26T21:52:51Z</dc:date>
    <item>
      <title>Filter during LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-during-LOAD/m-p/698575#M668176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem, what I cannot solve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am loading data where in some cases two kind of data exists for the same day and same external_id, and I need only one ( the two types are CONTRACTED value and RECALCULATED value) . I would like to load only the recalculated value if the date and external ID are identical. How is it possible with load script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 348px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;EXT_ID&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="111"&gt;Date_valid_from&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="109"&gt;STATUS&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2014.08.01&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;CONTRACTED&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2014.08.01&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;RECALCULATION&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2014.08.01&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;CONTRACTED&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2014.09.01&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;RECALCULATION&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2014.09.01&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;CONTRACTED&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2014.09.01&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;RECALCULATION&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the first two rows I would like to load the second one and drop the first one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="348"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;EXT_ID&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="111"&gt;Date_valid_from&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="109"&gt;STATUS&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="20" style="border-top: none;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;2014.08.01&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;CONTRACTED&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;5&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;2014.08.01&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;RECALCULATION&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the 3rd and 4th row EXT_ID is the same , but Dates are different, so I need both rows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="348"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" width="64"&gt;EXT_ID&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="111"&gt;Date_valid_from&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="109"&gt;STATUS&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="64"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2014.08.01&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;CONTRACTED&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2014.09.01&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;RECALCULATION&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Row 5 and 6 is similar to the first one: I need only the RECALCULATION where EXT_ID and Date_valid_from are identical:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="348"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" width="64"&gt;EXT_ID&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="111"&gt;Date_valid_from&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="109"&gt;STATUS&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="64"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;2014.09.01&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;CONTRACTED&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2014.09.01&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;RECALCULATION&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So after LOAD I would require the following rows in the table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="348"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" width="64"&gt;EXT_ID&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="111"&gt;Date_valid_from&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="109"&gt;STATUS&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="64"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2014.08.01&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;RECALCULATION&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2014.08.01&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;CONTRACTED&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2014.09.01&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;RECALCULATION&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2014.09.01&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;RECALCULATION&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me with loading script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards and thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zoltan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Oct 2014 21:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-during-LOAD/m-p/698575#M668176</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-26T21:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Filter during LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-during-LOAD/m-p/698576#M668177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SCRIPT&lt;/STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Directory;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tmp:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD EXT_ID, Date_valid_from, STATUS, Value&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM RECALC_LOAD.xlsx (ooxml, embedded labels, table is Munka1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;final:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident tmp&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;where Peek(EXT_ID) &amp;lt;&amp;gt; EXT_ID or peek(Date_valid_from) &amp;lt;&amp;gt; Date_valid_from&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;order by EXT_ID, STATUS desc;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table tmp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESULT&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/69713_1.png" style="width: auto; height: auto;" /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Oct 2014 21:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-during-LOAD/m-p/698576#M668177</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-10-26T21:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Filter during LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-during-LOAD/m-p/698577#M668178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Massimo, you solved my problem!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zoltan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 07:40:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-during-LOAD/m-p/698577#M668178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-27T07:40:25Z</dc:date>
    </item>
  </channel>
</rss>

