<?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 Where Exists clarification in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-Exists-clarification/m-p/367274#M704688</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp; understand how the where exists works, but what I have now seen for the firsttime is a where exists with 2 fields in it, Where exists (field1,field2).&amp;nbsp; Can someone tell me what the where exists is doing below? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Material_MATNR is a field in the Fact table and then the 1st block of code below uses it to create ActiveMaterial &lt;/P&gt;&lt;P&gt;Left Join (Fact)&lt;BR /&gt;LOAD distinct&lt;BR /&gt; %KEY_VBRP,&lt;BR /&gt; If(isNull(Material_SMATN),Material_MATNR,Material_SMATN) &amp;amp; '/' &amp;amp;[SalesOrganization_VKORG] as %ACTIVEMATNR%VKORG,&lt;BR /&gt; If(isNull(Material_SMATN),Material_MATNR,Material_SMATN) as ActiveMaterial&lt;BR /&gt;Resident Fact; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now Fact table has Material_MATNR and ActiveMaterialand then the code below comes in next. So is it saying, load this code where Material_MATNR and ActiveMaterialexists while it loads Material_MATNR as ActiveMaterialat the same time? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Material:&lt;BR /&gt;LOAD &lt;BR /&gt; Material_MATNR as ActiveMaterial, &lt;BR /&gt; [Language Key_SPRAS],&lt;BR /&gt; [Material Description_MAKTX]&lt;BR /&gt;FROM\\ghos2280\repository$\03.MASTER\MATERIAL\DATA\MAKT.qvd (qvd) &lt;BR /&gt;WHERE EXISTS (ActiveMaterial,Material_MATNR); &lt;BR clear="all" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Mar 2012 17:16:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-23T17:16:43Z</dc:date>
    <item>
      <title>Where Exists clarification</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists-clarification/m-p/367274#M704688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp; understand how the where exists works, but what I have now seen for the firsttime is a where exists with 2 fields in it, Where exists (field1,field2).&amp;nbsp; Can someone tell me what the where exists is doing below? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Material_MATNR is a field in the Fact table and then the 1st block of code below uses it to create ActiveMaterial &lt;/P&gt;&lt;P&gt;Left Join (Fact)&lt;BR /&gt;LOAD distinct&lt;BR /&gt; %KEY_VBRP,&lt;BR /&gt; If(isNull(Material_SMATN),Material_MATNR,Material_SMATN) &amp;amp; '/' &amp;amp;[SalesOrganization_VKORG] as %ACTIVEMATNR%VKORG,&lt;BR /&gt; If(isNull(Material_SMATN),Material_MATNR,Material_SMATN) as ActiveMaterial&lt;BR /&gt;Resident Fact; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now Fact table has Material_MATNR and ActiveMaterialand then the code below comes in next. So is it saying, load this code where Material_MATNR and ActiveMaterialexists while it loads Material_MATNR as ActiveMaterialat the same time? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Material:&lt;BR /&gt;LOAD &lt;BR /&gt; Material_MATNR as ActiveMaterial, &lt;BR /&gt; [Language Key_SPRAS],&lt;BR /&gt; [Material Description_MAKTX]&lt;BR /&gt;FROM\\ghos2280\repository$\03.MASTER\MATERIAL\DATA\MAKT.qvd (qvd) &lt;BR /&gt;WHERE EXISTS (ActiveMaterial,Material_MATNR); &lt;BR clear="all" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 17:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists-clarification/m-p/367274#M704688</guid>
      <dc:creator />
      <dc:date>2012-03-23T17:16:43Z</dc:date>
    </item>
    <item>
      <title>Where Exists clarification</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists-clarification/m-p/367275#M704689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is explained fully in the F1 help. Basically, records will be loaded into the Material table from MAKT.qvd only where Material_MATNR exists in the previously loaded ActiveMaterial field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 18:51:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists-clarification/m-p/367275#M704689</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-03-23T18:51:21Z</dc:date>
    </item>
    <item>
      <title>Where Exists clarification</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Exists-clarification/m-p/367276#M704690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With 2 parameters, Exists will evaluate the second parameter (which can be a field or an expression) and return true if the value exists in the field name in the first parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your example, the second load statement will only load records where the Material_MATNR was already loaded by the first load statement (as ActiveMaterial). The script is functionally the same as prefixing the second load with a &lt;STRONG&gt;Left Join&lt;/STRONG&gt; or &lt;STRONG&gt;Left Keep&lt;/STRONG&gt; qualifier. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 19:08:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Exists-clarification/m-p/367276#M704690</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-03-23T19:08:04Z</dc:date>
    </item>
  </channel>
</rss>

