<?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: two subsets - i need the intersection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/two-subsets-i-need-the-intersection/m-p/541298#M202342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A _jive_internal="true" data-avatarid="5408" data-externalid="" data-online="false" data-presence="null" data-userid="127255" data-username="kstyles089" href="https://community.qlik.com/people/kstyles089" style="font-weight: bold; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #8b8b8b; text-decoration: underline; background-color: #f6f6f6;"&gt;kstyles089&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you attach the sample file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mukram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Aug 2013 07:59:06 GMT</pubDate>
    <dc:creator>mdmukramali</dc:creator>
    <dc:date>2013-08-29T07:59:06Z</dc:date>
    <item>
      <title>two subsets - i need the intersection</title>
      <link>https://community.qlik.com/t5/QlikView/two-subsets-i-need-the-intersection/m-p/541293#M202337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi at all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have following question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two Dimension with results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; WIDTH: 100%; BORDER-TOP: #000000 1px solid; BORDER-RIGHT: #000000 1px solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;DimensionA&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;DimensionB &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;L&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;K&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;C&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;R&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;D&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;E&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;X&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;F&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;C&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;G&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a Count of the Intersection between Dimension A and Dimension B:&lt;/P&gt;&lt;P&gt;For this Example it is A - A, C - C and A - A. I need to count the distinct pairs. In this example the Distinct Count = 2 becaus A - A and C - C.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Which formula is correct?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;I tried something like this without success: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;COUNT&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;DimensionA&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;*&amp;lt;DimensionB&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; DimensionA&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thank You!!!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 11:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-subsets-i-need-the-intersection/m-p/541293#M202337</guid>
      <dc:creator />
      <dc:date>2013-08-28T11:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: two subsets - i need the intersection</title>
      <link>https://community.qlik.com/t5/QlikView/two-subsets-i-need-the-intersection/m-p/541294#M202338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both the fields are in same table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 11:29:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-subsets-i-need-the-intersection/m-p/541294#M202338</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-08-28T11:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: two subsets - i need the intersection</title>
      <link>https://community.qlik.com/t5/QlikView/two-subsets-i-need-the-intersection/m-p/541295#M202339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 11:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-subsets-i-need-the-intersection/m-p/541295#M202339</guid>
      <dc:creator />
      <dc:date>2013-08-28T11:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: two subsets - i need the intersection</title>
      <link>https://community.qlik.com/t5/QlikView/two-subsets-i-need-the-intersection/m-p/541296#M202340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;SPAN class="font-color-meta" style="padding: 0 0 5px; font-size: 1.2em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #8b8b8b; background-color: #e6e6e6;"&gt;&lt;SPAN class="replyToName" style="font-style: inherit; font-family: inherit;"&gt;kstyles089&lt;/SPAN&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the below two expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;=count({&amp;lt;DimensionA={"=count({&amp;lt; DimensionB=P(DimensionA)&amp;gt;}distinct DimensionA)&amp;gt;0"} &amp;gt; }distinct DimensionB)&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;=count({&amp;lt;DimensionB={"=count({&amp;lt; DimensionA=P(DimensionB)&amp;gt;}distinct DimensionB)&amp;gt;0"} &amp;gt; }distinct DimensionA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly find the attachment.&lt;/P&gt;&lt;P&gt;I hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mukram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 12:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-subsets-i-need-the-intersection/m-p/541296#M202340</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2013-08-28T12:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: two subsets - i need the intersection</title>
      <link>https://community.qlik.com/t5/QlikView/two-subsets-i-need-the-intersection/m-p/541297#M202341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mukram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But sry... My mistake. The two dimension are not in one table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Tableview looks like following example:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="table.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/46005_table.JPG" style="width: 620px; height: 287px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so your expression doesn`t work. Do you have a solution for this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks, kstyles089&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 07:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-subsets-i-need-the-intersection/m-p/541297#M202341</guid>
      <dc:creator />
      <dc:date>2013-08-29T07:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: two subsets - i need the intersection</title>
      <link>https://community.qlik.com/t5/QlikView/two-subsets-i-need-the-intersection/m-p/541298#M202342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A _jive_internal="true" data-avatarid="5408" data-externalid="" data-online="false" data-presence="null" data-userid="127255" data-username="kstyles089" href="https://community.qlik.com/people/kstyles089" style="font-weight: bold; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #8b8b8b; text-decoration: underline; background-color: #f6f6f6;"&gt;kstyles089&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you attach the sample file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mukram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 07:59:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-subsets-i-need-the-intersection/m-p/541298#M202342</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2013-08-29T07:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Re: two subsets - i need the intersection</title>
      <link>https://community.qlik.com/t5/QlikView/two-subsets-i-need-the-intersection/m-p/541299#M202343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I hope the attachment helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 08:13:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-subsets-i-need-the-intersection/m-p/541299#M202343</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-08-29T08:13:57Z</dc:date>
    </item>
  </channel>
</rss>

