<?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 problem: implicit field value not being accounted in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-analysis-problem-implicit-field-value-not-being-accounted/m-p/1516388#M36765</link>
    <description>&lt;P&gt;This post from HIC talks about the search string briefly&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344" target="_blank"&gt;A Primer on Set Analysis&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Dec 2018 16:34:39 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-12-04T16:34:39Z</dc:date>
    <item>
      <title>Set analysis problem: implicit field value not being accounted</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-problem-implicit-field-value-not-being-accounted/m-p/1516333#M36760</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt;&lt;P&gt;It's my second question on the community!&lt;/P&gt;&lt;P&gt;So, I'm developing a few calculated fields, and this time I want a different kind of set analysis:&lt;/P&gt;&lt;P&gt;There's a list of buyers and sellers and qty bought. In the list bellow there are 10 distinct buyers, but only 6 are "unique" buyers (those that bought from only one seller - Seller1, in this example)&lt;/P&gt;&lt;P&gt;What I want is: given there's 10 - 6 = 4 buyers that bought from Seller1 and other buyers, how many of these also bought from Seller2?&lt;/P&gt;&lt;P&gt;When I tried use Set Analysis to consider only the number of buyers that bought from Seller1 that also bought from another set of Sellers...:&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Seller=P({&amp;lt;&lt;SPAN&gt;Seller={&lt;/SPAN&gt;'Seller2'}&amp;gt;} Seller)&amp;gt;} Aggr(DISTINCT Seller, Buyer))&lt;/P&gt;&lt;P&gt;...it only shows the unique buyers of Seller2 on the Seller2 line (on a pivot table) and shows zeros on the other sellers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Original table:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Buyer&lt;/TD&gt;&lt;TD&gt;Seller&lt;/TD&gt;&lt;TD&gt;TotalQty&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;21339965&lt;/TD&gt;&lt;TD&gt;Seller3&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;21339965&lt;/TD&gt;&lt;TD&gt;Seller1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;16631233&lt;/TD&gt;&lt;TD&gt;Seller1&lt;/TD&gt;&lt;TD&gt;291&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;06967098&lt;/TD&gt;&lt;TD&gt;Seller2&lt;/TD&gt;&lt;TD&gt;185&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;06967098&lt;/TD&gt;&lt;TD&gt;Seller3&lt;/TD&gt;&lt;TD&gt;114&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;06967098&lt;/TD&gt;&lt;TD&gt;Seller1&lt;/TD&gt;&lt;TD&gt;17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;84858307&lt;/TD&gt;&lt;TD&gt;Seller2&lt;/TD&gt;&lt;TD&gt;46&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;84858307&lt;/TD&gt;&lt;TD&gt;Seller1&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;07272825&lt;/TD&gt;&lt;TD&gt;Seller2&lt;/TD&gt;&lt;TD&gt;345&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;07272825&lt;/TD&gt;&lt;TD&gt;Seller1&lt;/TD&gt;&lt;TD&gt;460&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;08050237&lt;/TD&gt;&lt;TD&gt;Seller1&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10462976&lt;/TD&gt;&lt;TD&gt;Seller1&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;62115431&lt;/TD&gt;&lt;TD&gt;Seller1&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;03728965&lt;/TD&gt;&lt;TD&gt;Seller1&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;07147692&lt;/TD&gt;&lt;TD&gt;Seller1&lt;/TD&gt;&lt;TD&gt;385&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 21 Dec 2021 22:04:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-problem-implicit-field-value-not-being-accounted/m-p/1516333#M36760</guid>
      <dc:creator>Liz</dc:creator>
      <dc:date>2021-12-21T22:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis problem: implicit field value not being accounted</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-problem-implicit-field-value-not-being-accounted/m-p/1516350#M36762</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;Count(DISTINCT {&amp;lt;Buyer = {"=Count(DISTINCT Seller) &amp;gt; 1"}, Seller = {'Seller2'}&amp;gt;} Buyer)&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Dec 2018 16:01:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-problem-implicit-field-value-not-being-accounted/m-p/1516350#M36762</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-04T16:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis problem: implicit field value not being accounted</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-problem-implicit-field-value-not-being-accounted/m-p/1516379#M36763</link>
      <description>When I first saw my first post solution you replied, I realized that this is the solution for all my problems!&lt;BR /&gt;On the seller subset part, I modified to retrieve all the possible sellers based on another field with the P() function, and it worked perfectly on my data!&lt;BR /&gt;Thank you again!&lt;BR /&gt;Let me ask you something: where (on the documentation) is this topic (the way you used an expression inside quotation marks to represent a condition) discussed?&lt;BR /&gt;So I can learn more!</description>
      <pubDate>Tue, 04 Dec 2018 16:25:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-problem-implicit-field-value-not-being-accounted/m-p/1516379#M36763</guid>
      <dc:creator>Liz</dc:creator>
      <dc:date>2018-12-04T16:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis problem: implicit field value not being accounted</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-problem-implicit-field-value-not-being-accounted/m-p/1516388#M36765</link>
      <description>&lt;P&gt;This post from HIC talks about the search string briefly&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344" target="_blank"&gt;A Primer on Set Analysis&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 16:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-problem-implicit-field-value-not-being-accounted/m-p/1516388#M36765</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-04T16:34:39Z</dc:date>
    </item>
  </channel>
</rss>

