<?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 Set Analysis - Intersection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Intersection/m-p/170043#M40613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this?&lt;BR /&gt;Notice that there is no set analysis there. Dimensions:&lt;BR /&gt; - KeyID (hidden)&lt;BR /&gt; - ShareID&lt;BR /&gt; - aggr(only(total if(TYPEDESC='Active', Name)), Name)&lt;BR /&gt;Expression&lt;BR /&gt;only(if(TYPEDESC&amp;lt;&amp;gt;'Active' , Name))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 20 Mar 2011 17:39:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-03-20T17:39:54Z</dc:date>
    <item>
      <title>Set Analysis - Intersection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Intersection/m-p/170040#M40610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: bold"&gt;PROBLEM STATEMENT: Ability to view Name without "Active" that Share a "ShareID" with Name that do have "Active"&lt;/P&gt;&lt;P&gt;I am able to identify the Name that meets the intersection criteria but when it comes to displaying in a chart I am unable to get the desired output format chart.&lt;/P&gt;&lt;P&gt;Can someone please help me.&lt;/P&gt;&lt;P&gt;I have included QVW file and below is my data setup.&lt;/P&gt;&lt;P&gt;Thank you in advance!!&lt;/P&gt;&lt;P&gt;Pranita&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Data Setup:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Name Table:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Name, KeyID,NameID&lt;/P&gt;&lt;P&gt;Randy, 1, 1&lt;/P&gt;&lt;P&gt;David,2,2&lt;/P&gt;&lt;P&gt;Andy,3,3&lt;/P&gt;&lt;P&gt;Mandy,4,4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;ShareID&lt;/P&gt;&lt;P style="font-weight: bold"&gt;KEYID, ShareID&lt;/P&gt;&lt;P&gt;1, 10313237&lt;/P&gt;&lt;P&gt;2, 10313237&lt;/P&gt;&lt;P&gt;3 , 10313237&lt;/P&gt;&lt;P&gt;4, 10313237&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE Table:&lt;/P&gt;&lt;P&gt;TYPEID, TYPEDESC&lt;/P&gt;&lt;P&gt;1299 ,Active&lt;/P&gt;&lt;P&gt;10884&lt;/P&gt;&lt;P&gt;10887&lt;/P&gt;&lt;P&gt;10935&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Desired Chart Output&lt;/P&gt;&lt;P&gt;&lt;B&gt;SharedID, Name_With_Active, Name_without_Activ&lt;/B&gt;e&lt;/P&gt;&lt;P&gt;10313237, Mandy ,Andy&lt;/P&gt;&lt;P&gt;10313237, Mandy ,David&lt;/P&gt;&lt;P&gt;10313237 , Mandy, Randy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2011 20:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Intersection/m-p/170040#M40610</guid>
      <dc:creator />
      <dc:date>2011-03-18T20:44:47Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - Intersection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Intersection/m-p/170041#M40611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pranita,&lt;/P&gt;&lt;P&gt;the formula to calculate what you need is the following:&lt;/P&gt;&lt;P&gt;=count({&amp;lt;TYPEDESC ={"&amp;lt;&amp;gt;'Active'"}, ShareID = {"=count({&amp;lt;TYPEDESC = {'Active'}&amp;gt;} NAMEID)&amp;gt;0"} &amp;gt;} Name)&lt;/P&gt;&lt;P&gt;however, it won't work as long as "Active" is the only possible value in the field "TYPEDESC". You can't select TYPEDESC &amp;lt;&amp;gt; 'Active" if there are no more choices. If you replace nulls with "Not Active" or even spaces, it should work then.&lt;/P&gt;&lt;P&gt;To explain this formula:&lt;/P&gt;&lt;P&gt;- you are counting those Names that have TYPEDESC other than "active", however, they are associated with ShareID that satisfy the following condition: the count of associated NAMEID that are active, is greater then 0.&lt;/P&gt;&lt;P&gt;hope it all makes sense.&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2011 21:46:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Intersection/m-p/170041#M40611</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2011-03-18T21:46:54Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - Intersection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Intersection/m-p/170042#M40612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't really understand your data, so I don't know if this is the right answer. However, I can generate your desired chart like this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;dimension 1 = ShareID&lt;BR /&gt;dimension 2 = Name&lt;BR /&gt;expression = if(TYPEDESC&amp;lt;&amp;gt;'Active',only({&amp;lt;TYPEDESC={'Active'}&amp;gt;} total Name))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2011 21:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Intersection/m-p/170042#M40612</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-03-18T21:52:47Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - Intersection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Intersection/m-p/170043#M40613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this?&lt;BR /&gt;Notice that there is no set analysis there. Dimensions:&lt;BR /&gt; - KeyID (hidden)&lt;BR /&gt; - ShareID&lt;BR /&gt; - aggr(only(total if(TYPEDESC='Active', Name)), Name)&lt;BR /&gt;Expression&lt;BR /&gt;only(if(TYPEDESC&amp;lt;&amp;gt;'Active' , Name))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Mar 2011 17:39:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Intersection/m-p/170043#M40613</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-20T17:39:54Z</dc:date>
    </item>
  </channel>
</rss>

