<?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: How to load data from table only if column has match with column from previous table? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-load-data-from-table-only-if-column-has-match-with-column/m-p/816285#M1047002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nazeem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the expression you are looking for is "Exists". You can look this up in the QlikView help files but here is the example code it gives:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;Load Employee, ID, Salary from Employees.csv; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;Load FirstName&amp;amp; ' ' &amp;amp;LastName as Employee, Comment from Citizens.csv where exists (Employee, FirstName&amp;amp; ' ' &amp;amp;LastName);&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only comments regarding those citizens who are employees are read.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Nov 2014 11:45:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-11-12T11:45:20Z</dc:date>
    <item>
      <title>How to load data from table only if column has match with column from previous table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-data-from-table-only-if-column-has-match-with-column/m-p/816284#M1047001</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'm creating a Qlikview app where I have to give insights in incoming calls and the associated SAP data.&lt;/P&gt;&lt;P&gt;Between a Call and the SAP data there is a reference, through a SAP Number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The information with the Call are imported from a database. The SAP data is loaded from a Excel sheet (a dump from the database).&lt;/P&gt;&lt;P&gt;In the Qlikview app only the SAP Data which has a reference with a Call is relevant. Thus, it's basically not necessary to import the whole excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my Qlikview Script I have imported all the Calls and SAP data. The reference between the two tables is identified by a field: &lt;STRONG&gt;&lt;EM&gt;%SAP.ID&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Relevant fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Melding.SAP Nummer&lt;/EM&gt;&lt;/STRONG&gt; = The SAP Number from the Call table.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;SAP.Nummer&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp; = The SAP number from the SAP table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;How can I load the data from my SAP excelsheet on the condition that there is a match between the SAP number (&lt;EM&gt;SAP.Nummer&lt;/EM&gt;) and the call SAP number (&lt;EM&gt;Melding.SAP Nummer&lt;/EM&gt;) in my script?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached the sample dashboard as an attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 11:17:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-data-from-table-only-if-column-has-match-with-column/m-p/816284#M1047001</guid>
      <dc:creator />
      <dc:date>2014-11-12T11:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to load data from table only if column has match with column from previous table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-data-from-table-only-if-column-has-match-with-column/m-p/816285#M1047002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nazeem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the expression you are looking for is "Exists". You can look this up in the QlikView help files but here is the example code it gives:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;Load Employee, ID, Salary from Employees.csv; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;Load FirstName&amp;amp; ' ' &amp;amp;LastName as Employee, Comment from Citizens.csv where exists (Employee, FirstName&amp;amp; ' ' &amp;amp;LastName);&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only comments regarding those citizens who are employees are read.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 11:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-data-from-table-only-if-column-has-match-with-column/m-p/816285#M1047002</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-12T11:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to load data from table only if column has match with column from previous table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-data-from-table-only-if-column-has-match-with-column/m-p/816286#M1047003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi @Adam Booth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your provided solution works! I had to use the function Exists().&lt;BR /&gt;In my example I had to extend my WHERE-clause with the Exists function like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14158725108253603" jivemacro_uid="_14158725108253603"&gt;
&lt;P&gt;[SAP]:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; AutoNumber([SO: Nummer]) as %SAP.ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [SO: Nummer]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [SAP.Nummer],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [SO: Status]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [SAP.Status],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Order&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [SAP.Order],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Omschrijving&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [SAP.Omschrijving],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Num([Kosten Werkelijk])&amp;nbsp; as [SAP.Werkelijkse kosten],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Gefact.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [SAP.Gefactureerd],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; IF([SO: Status] = 'Afgehandeld', 'Gefactureerd', 'Niet gefactureerd') as [SAP.Facturatie status],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [Uren Besteed]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [SAP.Uren Besteed]&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[$(DATA_DIR)ZANALYSIS_PATTERN_3(1) 30-1.xlsx]&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is [ZANALYSIS_PATTERN_3(1)])&lt;/P&gt;
&lt;P&gt;WHERE(Order &amp;lt;&amp;gt; 'Resultaat'&amp;nbsp; AND [SO: Status] &amp;lt;&amp;gt; 'Niet toegewezen' AND Exists([Melding.SAP Nummer], [SO: Nummer]));&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to check if the values from [Melding.SAP Nummer] exists in [SO: Nummer], which is the SAP number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 09:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-data-from-table-only-if-column-has-match-with-column/m-p/816286#M1047003</guid>
      <dc:creator />
      <dc:date>2014-11-13T09:55:58Z</dc:date>
    </item>
  </channel>
</rss>

