<?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: Count Customers with Similar Products in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-Customers-with-Similar-Products/m-p/1372087#M30982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the attached app and see if this makes sense&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/166920_Capture.PNG" style="height: 293px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jun 2017 19:48:45 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-06-14T19:48:45Z</dc:date>
    <item>
      <title>Count Customers with Similar Products</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Customers-with-Similar-Products/m-p/1372080#M30975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure there is an easy way to do this, but I am having difficulty.&amp;nbsp; I would like to create a Flag that identifies what customers have the same products.&amp;nbsp; I am hoping to do this within the load script.&amp;nbsp; Hopefully, the following table will be clear:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 228px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="114"&gt;&lt;STRONG&gt;Company &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="114"&gt;&lt;STRONG&gt;Fruit&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;Company A&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Apples&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;Company A&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Oranges&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;Company B&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Strawberries&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;Company B&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Grapes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;Company C&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Apples&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;Company C&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Oranges&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;Company D&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Apples&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;Company D&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Grapes&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this scenario, I would like to know what Companies have &lt;STRONG&gt;both Apples&lt;/STRONG&gt; and &lt;STRONG&gt;Oranges&lt;/STRONG&gt;.&amp;nbsp; It's easy to see that the answer should be A&amp;amp;C, however, I am struggling to create the appropriate logic.&amp;nbsp; The formula I am using is returning A,C and D as well, when D only has apples and not both fruit.&amp;nbsp; It appears that my logic is keeping each type of fruit exclusive of the pair.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully, this was clear and someone can assist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 18:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Customers-with-Similar-Products/m-p/1372080#M30975</guid>
      <dc:creator />
      <dc:date>2017-06-14T18:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count Customers with Similar Products</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Customers-with-Similar-Products/m-p/1372081#M30976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Todd,&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Table:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; * &lt;SPAN style="color: #0000ff;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;BR /&gt; Company, Fruit &lt;BR /&gt; Company A, Apples &lt;BR /&gt; Company A, Oranges &lt;BR /&gt; Company B, Strawberries &lt;BR /&gt; Company B, Grapes &lt;BR /&gt; Company C, Apples &lt;BR /&gt; Company C, Oranges &lt;BR /&gt; Company D, Apples &lt;BR /&gt; Company D, Grapes ]&lt;/SPAN&gt;;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Left&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Join&lt;/SPAN&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #800000;"&gt;Company&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Concat&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Fruit&lt;/SPAN&gt;,';',&lt;SPAN style="color: #800000;"&gt;Fruit&lt;/SPAN&gt;)='Apples;Oranges',1) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Flag&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; Table &lt;SPAN style="color: #0000ff;"&gt;Group&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;By&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Company&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression : Only({&amp;lt;Flag={1}&amp;gt;} Flag)&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/166916_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 19:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Customers-with-Similar-Products/m-p/1372081#M30976</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-06-14T19:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Count Customers with Similar Products</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Customers-with-Similar-Products/m-p/1372082#M30977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antonio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I probably should've mentioned that I was only creating a small example for time's sake. There would be 1000s of Companies for me to list.&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt; Is there a way to do this without the manual inline table?&amp;nbsp; My Data is coming from a QVD.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Todd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 19:30:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Customers-with-Similar-Products/m-p/1372082#M30977</guid>
      <dc:creator />
      <dc:date>2017-06-14T19:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Count Customers with Similar Products</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Customers-with-Similar-Products/m-p/1372083#M30978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;Company = p({&amp;lt;Fruit = {'Apples'}&amp;gt;})*&lt;SPAN style="font-size: 13.3333px;"&gt;p({&amp;lt;Fruit = {'Oranges'}&amp;gt;})&lt;/SPAN&gt;&amp;gt;} Company)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="166919" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/166919_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 19:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Customers-with-Similar-Products/m-p/1372083#M30978</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-14T19:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Count Customers with Similar Products</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Customers-with-Similar-Products/m-p/1372084#M30979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your response as well.&amp;nbsp; I am not looking for a count of the Companies.&amp;nbsp; I am hoping to create a filter that can be applied to a table indicating what Companies have both Fruits.&amp;nbsp; I was thinking a flag in the load script would be most appropriate, but I could very well be wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Todd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 19:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Customers-with-Similar-Products/m-p/1372084#M30979</guid>
      <dc:creator />
      <dc:date>2017-06-14T19:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count Customers with Similar Products</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Customers-with-Similar-Products/m-p/1372085#M30980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I missed the first few lines of your post. But the idea is that if you want to filter certain thing, you can use this in your expressions using this set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{&amp;lt;Company = p({&amp;lt;Fruits = {'Apples'}&amp;gt;})*&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;p({&amp;lt;Fruits = {'Oranges'}&amp;gt;})&lt;/SPAN&gt;&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you do that, it will only show those Companies which have both Apples and Oranges as Fruit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 19:36:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Customers-with-Similar-Products/m-p/1372085#M30980</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-14T19:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Count Customers with Similar Products</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Customers-with-Similar-Products/m-p/1372086#M30981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again.&amp;nbsp; This is very helpful, however, I want my users to be able to turn the filter on / off at their discretion, then export/share the results for further management analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 19:42:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Customers-with-Similar-Products/m-p/1372086#M30981</guid>
      <dc:creator />
      <dc:date>2017-06-14T19:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Count Customers with Similar Products</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Customers-with-Similar-Products/m-p/1372087#M30982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the attached app and see if this makes sense&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/166920_Capture.PNG" style="height: 293px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 19:48:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Customers-with-Similar-Products/m-p/1372087#M30982</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-14T19:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Count Customers with Similar Products</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Customers-with-Similar-Products/m-p/1372088#M30983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load * From Table.qvd (qvd);&lt;/P&gt;&lt;P&gt;instead of LOAD * Inline ...............&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 19:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Customers-with-Similar-Products/m-p/1372088#M30983</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-06-14T19:49:22Z</dc:date>
    </item>
  </channel>
</rss>

