<?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: Set Analysis - Only if match between keys? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Only-if-match-between-keys/m-p/600688#M222270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use limiting expressions while LOAD &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Apr 2014 03:51:22 GMT</pubDate>
    <dc:creator>sujeetsingh</dc:creator>
    <dc:date>2014-04-22T03:51:22Z</dc:date>
    <item>
      <title>Set Analysis - Only if match between keys?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Only-if-match-between-keys/m-p/600684#M222266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interested in your thoughts on how to handle this.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still feel quite new with Qlikview and I've ran into a bit of a struggle with the following situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I count the Vendors &lt;STRONG&gt;NOT &lt;/STRONG&gt;in Table B (Vendor A and B) with Vendor acting as a Key between the two tables.&amp;nbsp; The result I'm looking for in the example below is 2.&amp;nbsp; Is there anyway to specify exactly what I'd like to be counted count(Table A.Vendor) - count(Table B.Vendor) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 192px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;&lt;STRONG&gt;Table A&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;/TD&gt;&lt;TD class="xl63" width="64"&gt;&lt;STRONG&gt;Table B&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;&lt;STRONG&gt;Vendor&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD class="xl63"&gt;&lt;STRONG&gt;Vendor&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Vendor A&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Vendor C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Vendor B&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Vendor D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Vendor C&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Vendor E&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Vendor D&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Vendor E&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your input!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 21:08:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Only-if-match-between-keys/m-p/600684#M222266</guid>
      <dc:creator />
      <dc:date>2014-04-21T21:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Only if match between keys?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Only-if-match-between-keys/m-p/600685#M222267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Greg,&lt;/P&gt;&lt;P&gt;The way I would do it is -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table A:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;Vendor as CountFlag&lt;/P&gt;&lt;P&gt; From Table A;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left join&lt;/P&gt;&lt;P&gt;Vendor,&lt;/P&gt;&lt;P&gt;1 as Flag&lt;/P&gt;&lt;P&gt;From Table B;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now on the Front end you can just do &lt;STRONG&gt;Count(Distinct if(isnull(Flag),CountFlag))&lt;/STRONG&gt; provided the Vendor key is unique(Primary Key) in Table A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 21:56:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Only-if-match-between-keys/m-p/600685#M222267</guid>
      <dc:creator />
      <dc:date>2014-04-21T21:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Only if match between keys?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Only-if-match-between-keys/m-p/600686#M222268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table B:&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;From Table B;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table A:&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;From Table A&lt;/P&gt;&lt;P&gt;Where Not Exists(Vendor);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table B;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This eliminates all the vendors in B and only keeps the vendors in A that are needed for counting. This also reduces the size of your data and maintains your optimized load (assuming you are using .qvd's). The downside here is that you are throwing out data. Verify that you don't need it later in the load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 03:05:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Only-if-match-between-keys/m-p/600686#M222268</guid>
      <dc:creator>trey_bayne</dc:creator>
      <dc:date>2014-04-22T03:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Only if match between keys?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Only-if-match-between-keys/m-p/600687#M222269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load your table like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableB:&lt;/P&gt;&lt;P&gt;load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Vendor&lt;/P&gt;&lt;P&gt;Vendor C&lt;/P&gt;&lt;P&gt;Vendor D&lt;/P&gt;&lt;P&gt;Vendor E&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Vendor&lt;/P&gt;&lt;P&gt;Vendor A&lt;/P&gt;&lt;P&gt;Vendor B&lt;/P&gt;&lt;P&gt;Vendor C&lt;/P&gt;&lt;P&gt;Vendor D&lt;/P&gt;&lt;P&gt;Vendor E&lt;/P&gt;&lt;P&gt;]Where Exists(Vendor,Vendor);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then count the Vendor on the front end&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 03:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Only-if-match-between-keys/m-p/600687#M222269</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-04-22T03:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Only if match between keys?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Only-if-match-between-keys/m-p/600688#M222270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use limiting expressions while LOAD &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 03:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Only-if-match-between-keys/m-p/600688#M222270</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-04-22T03:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Only if match between keys?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Only-if-match-between-keys/m-p/600689#M222271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for your answers.&amp;nbsp; I wanted to keep the original data in tact so I picked the answer that solved the issue that way. The other ways certainly work and are probably more efficient, but I wasn't looking for efficiency here. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 13:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Only-if-match-between-keys/m-p/600689#M222271</guid>
      <dc:creator />
      <dc:date>2014-04-23T13:55:26Z</dc:date>
    </item>
  </channel>
</rss>

