<?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 Straight Table 'Where In' clause? [Not Load Script] in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Straight-Table-Where-In-clause-Not-Load-Script/m-p/1091384#M466284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Hello everyone,&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;If I have three tables: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; padding-left: 30px;"&gt;Table1:&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; padding-left: 30px;"&gt;ProspectID&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; padding-left: 30px;"&gt;CustomerKey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; padding-left: 30px;"&gt;Table2: &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; padding-left: 30px;"&gt;OfferID&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; padding-left: 30px;"&gt;CustomerKey &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; padding-left: 30px;"&gt;LinkTable&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; padding-left: 30px;"&gt;Customer&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; padding-left: 30px;"&gt;CustomerKey &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Then &lt;EM&gt;after&lt;/EM&gt; selecting CustomerKey (which associates two ID columns in two separate tables...which are different ID lists), I want to build two straight tables: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;a) Straight Table with these&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;ProspectID&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;CustomerKey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;b) Straight Table with these&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;OfferID&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;CustomerKey &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;EM&gt;** But for the second Straight Table, I only want to show the OfferIDs, if they exist in the Table1 &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;In SQL, I could use:&amp;nbsp; &lt;STRONG&gt;where OfferID in (select ProspectID from Table1) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;How can I do an equivalent 'where in' clause? &lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; Jarrell&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. This is only a simplified example...as my real data model has many more links and the tables have more fields... some of which are 'many-to-many tables' (i.e. I don't adding and union/concatenate 'ID' column to the link table would work).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Feb 2016 16:36:53 GMT</pubDate>
    <dc:creator>jrdunson</dc:creator>
    <dc:date>2016-02-10T16:36:53Z</dc:date>
    <item>
      <title>Straight Table 'Where In' clause? [Not Load Script]</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-Where-In-clause-Not-Load-Script/m-p/1091384#M466284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Hello everyone,&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;If I have three tables: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; padding-left: 30px;"&gt;Table1:&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; padding-left: 30px;"&gt;ProspectID&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; padding-left: 30px;"&gt;CustomerKey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; padding-left: 30px;"&gt;Table2: &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; padding-left: 30px;"&gt;OfferID&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; padding-left: 30px;"&gt;CustomerKey &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; padding-left: 30px;"&gt;LinkTable&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; padding-left: 30px;"&gt;Customer&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; padding-left: 30px;"&gt;CustomerKey &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Then &lt;EM&gt;after&lt;/EM&gt; selecting CustomerKey (which associates two ID columns in two separate tables...which are different ID lists), I want to build two straight tables: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;a) Straight Table with these&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;ProspectID&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;CustomerKey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;b) Straight Table with these&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;OfferID&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;CustomerKey &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;EM&gt;** But for the second Straight Table, I only want to show the OfferIDs, if they exist in the Table1 &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;In SQL, I could use:&amp;nbsp; &lt;STRONG&gt;where OfferID in (select ProspectID from Table1) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;How can I do an equivalent 'where in' clause? &lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; Jarrell&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. This is only a simplified example...as my real data model has many more links and the tables have more fields... some of which are 'many-to-many tables' (i.e. I don't adding and union/concatenate 'ID' column to the link table would work).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 16:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-Where-In-clause-Not-Load-Script/m-p/1091384#M466284</guid>
      <dc:creator>jrdunson</dc:creator>
      <dc:date>2016-02-10T16:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table 'Where In' clause? [Not Load Script]</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-Where-In-clause-Not-Load-Script/m-p/1091385#M466285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The QlikView associative engine travels CustomerKey link field, but you want to ignore that and only show OfferIDs that correspond to identical ProspectID values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this using set analysis that resets CustomerID to all those values that comply with ProspectID = OfferID. But as your PS stated that you real situation is much more complex, we may be building a solution that only works for your two Customer tables, and not for your actual data model. For example, in this case you could create a key composed of both xxxxID and CustomerKey. Or because in Sales Analysis, both IDs usually concern the same Customer, you may as wel ignore the CustomerKey link and create a link field from the two IDs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 16:47:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-Where-In-clause-Not-Load-Script/m-p/1091385#M466285</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-02-10T16:47:57Z</dc:date>
    </item>
  </channel>
</rss>

