<?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 Exclude Records in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exclude-Records/m-p/1279868#M401475</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am bringing in 2 tables to QlikView and concatenating them, However some of the records in the second table are already in the first table and I need to exclude them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have a "Revenue" table with Name, Date, Product and "Transaction Number" with values 1, 2, 3, 4, 5, 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and a second table "Revenue 2" with the same fields with values Transaction Numbers of 2, 5, 7, 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want Transactions 2 and 5 from "Revenue 2" table to concatenate to the "Revenue" table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Easy fix?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Feb 2017 11:29:17 GMT</pubDate>
    <dc:creator>kevbrown</dc:creator>
    <dc:date>2017-02-28T11:29:17Z</dc:date>
    <item>
      <title>Exclude Records</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Records/m-p/1279868#M401475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am bringing in 2 tables to QlikView and concatenating them, However some of the records in the second table are already in the first table and I need to exclude them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have a "Revenue" table with Name, Date, Product and "Transaction Number" with values 1, 2, 3, 4, 5, 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and a second table "Revenue 2" with the same fields with values Transaction Numbers of 2, 5, 7, 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want Transactions 2 and 5 from "Revenue 2" table to concatenate to the "Revenue" table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Easy fix?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 11:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Records/m-p/1279868#M401475</guid>
      <dc:creator>kevbrown</dc:creator>
      <dc:date>2017-02-28T11:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Records</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Records/m-p/1279869#M401476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Easy to do in QV. I'm using dummy code, the magic is in the Exists() function call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;// Load everything from Revenue1 source&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[Revenue]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * FROM [&lt;EM&gt;DataSourcePath1&lt;/EM&gt;] (&lt;EM&gt;options&lt;/EM&gt;); // Includes a field called TransactionID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;// Add Revenue2 - omit existing Transactions by checking field TransactionID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CO&lt;/SPAN&gt;NCATENATE (Revenue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * FROM &lt;SPAN style="font-size: 13.3333px;"&gt;[&lt;EM&gt;DataSourcePath2&lt;/EM&gt;] (&lt;EM&gt;options&lt;/EM&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'courier new', courier;"&gt;WHERE Not Exists(TransactionID); // Won't load existing TransactionID rows&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 11:35:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Records/m-p/1279869#M401476</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-02-28T11:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Records</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Records/m-p/1279870#M401477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For more information on the Exists() function, see: &lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/InterRecordFunctions/Exists.htm" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/InterRecordFunctions/Exists.htm"&gt;Exists ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 11:38:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Records/m-p/1279870#M401477</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-02-28T11:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Records</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Records/m-p/1279871#M401478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks that worked perfectly.&amp;nbsp; On the same lines, what if I had a list in excel of the Transaction Numbers that I would like to exclude. from the second table so they don't feed into the first table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 11:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Records/m-p/1279871#M401478</guid>
      <dc:creator>kevbrown</dc:creator>
      <dc:date>2017-02-28T11:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Records</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-Records/m-p/1279872#M401479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Best (and quickest) way to handle variable exclusion lists is to load your Excel list in a MAPPING table before loading the second part of the available transactions. The Exists() call gets replaced by a call to applymap() that returns a selected value (by you) for every record that needs to be excluded. Add some glue logic and you're set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Info on Mapping and the use of applymap(), see here: &lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/ScriptPrefixes/Mapping.htm" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/ScriptPrefixes/Mapping.htm"&gt;Mapping ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 11:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-Records/m-p/1279872#M401479</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-02-28T11:51:22Z</dc:date>
    </item>
  </channel>
</rss>

