<?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: Strict AND in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Strict-AND/m-p/543174#M202981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try something like this&lt;/P&gt;&lt;P&gt;Sum($(='{&amp;lt;Cliente=P({&amp;lt;Producto={' &amp;amp; Concat(DISTINCT Producto, '}&amp;gt;} Cliente) * P({&amp;lt;Producto={') &amp;amp; '}&amp;gt;} Cliente)&amp;gt;}') Valor)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Nov 2013 14:19:28 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2013-11-19T14:19:28Z</dc:date>
    <item>
      <title>Strict AND</title>
      <link>https://community.qlik.com/t5/QlikView/Strict-AND/m-p/543167#M202974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10.5pt;"&gt;Hi Qlikers&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10.5pt;"&gt;When I create a set and I say Product = {‘A’,’B’}, set analysis brings all clients who have bought Product A OR Product B.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10.5pt;"&gt;The question is: How can I get those clients who have bought BOTH A and B Products?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10.5pt;"&gt;In other words, how to set a Strict AND in set analysis?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10.5pt;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Segoe UI','sans-serif'; color: black; font-size: 10.5pt;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 11:34:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strict-AND/m-p/543167#M202974</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2013-11-19T11:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Strict AND</title>
      <link>https://community.qlik.com/t5/QlikView/Strict-AND/m-p/543168#M202975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Christian&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use the AND mode in your List Box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have pasted the below from one of Stephen Redmond's blog posts on his QlikTips Web site&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif;"&gt;&lt;EM&gt;To enable "AND mode" in a list box, there are a couple of rules that we need to follow:&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM style="color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif;"&gt;1. The field in the list box must be contained in a table that has only 2 fields.&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM style="color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif;"&gt;2. The other field in the table is the association (or ID) field. This field is only contained in this table.&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif;"&gt;&lt;EM&gt;3. The table must have been loaded with the "DISTINCT" keyword.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif;"&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 11:57:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strict-AND/m-p/543168#M202975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-19T11:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Strict AND</title>
      <link>https://community.qlik.com/t5/QlikView/Strict-AND/m-p/543169#M202976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the intersection operator in the set expression; something like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Product={'A'}&amp;gt;*&amp;lt;Product={'B'}&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Customer=P(&amp;lt;Product={'A'}&amp;gt;}&amp;gt;*&amp;lt;Customer=P(&amp;lt;Product={'B'}&amp;gt;}&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 12:05:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strict-AND/m-p/543169#M202976</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-11-19T12:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Strict AND</title>
      <link>https://community.qlik.com/t5/QlikView/Strict-AND/m-p/543170#M202977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill. &lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;My model does not accomplish those initial conditions. I can’t do it that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We should be able to do that with set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 12:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strict-AND/m-p/543170#M202977</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2013-11-19T12:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Strict AND</title>
      <link>https://community.qlik.com/t5/QlikView/Strict-AND/m-p/543171#M202978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: arial,helvetica,sans-serif;"&gt;Hi Jonathan:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;I've tried your way. I’m not familiar with P and E sets since I don’t usually use them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;I’ve got the desired result for 3 product selection but it’s got to be dynamic since I don’t know how many Products are going to be selected at a time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;I already have a try to dynamize it, (not dynamite it), but still does not work. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;Anyway, the big issue here is. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;When are we going to have a set analysis with set intersection within the same field? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;Or…&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;When QlikTech is going to simplify our clients and ourselves life in this matter?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;Thank you for your answer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"&gt;This isn’t over.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 13:49:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strict-AND/m-p/543171#M202978</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2013-11-19T13:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Strict AND</title>
      <link>https://community.qlik.com/t5/QlikView/Strict-AND/m-p/543172#M202979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Christian&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please forgive me for daring to say this, but y&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;ou could sort your data model and use the &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;AND mode in your List Box.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 13:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strict-AND/m-p/543172#M202979</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-19T13:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Strict AND</title>
      <link>https://community.qlik.com/t5/QlikView/Strict-AND/m-p/543173#M202980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem, you can advise whatever you want. There’s freedom of expression. I’m the one asking for advice.&lt;/P&gt;&lt;P&gt;The one that I posted is just an example. Here is the real one. Product appears bold.&lt;/P&gt;&lt;P&gt;Of course I’d like to do that, that’d be the easiest way. No syntax, no headache.&lt;/P&gt;&lt;P&gt;Maybe extracting Product and Product_id from Product table like a select distinct Product_id resident Products?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="spider.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/49202_spider.png" style="width: 620px; height: 324px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 14:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strict-AND/m-p/543173#M202980</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2013-11-19T14:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Strict AND</title>
      <link>https://community.qlik.com/t5/QlikView/Strict-AND/m-p/543174#M202981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try something like this&lt;/P&gt;&lt;P&gt;Sum($(='{&amp;lt;Cliente=P({&amp;lt;Producto={' &amp;amp; Concat(DISTINCT Producto, '}&amp;gt;} Cliente) * P({&amp;lt;Producto={') &amp;amp; '}&amp;gt;} Cliente)&amp;gt;}') Valor)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 14:19:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strict-AND/m-p/543174#M202981</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-11-19T14:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Strict AND</title>
      <link>https://community.qlik.com/t5/QlikView/Strict-AND/m-p/543175#M202982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since I too do not use the P or E sets too often, I would solve this the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Cliente={"=COUNT({&amp;lt;Producto={'P001'}&amp;gt;} Cliente)&amp;gt;0"}&amp;gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&amp;lt;Cliente={"=COUNT({&amp;lt;Producto={'P004'}&amp;gt;} Cliente)&amp;gt;0"}&amp;gt;} Valor)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the intersection of the Clients that have each product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds like you want to have this be dynamic based on the selection in the Producto field. If that is the case you could put the following in a variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='SUM({' &amp;amp; Concat(Distinct {&amp;lt;Producto=Producto&amp;gt;} '&amp;lt;Cliente={"=COUNT({&amp;lt;Producto={' &amp;amp; chr(39) &amp;amp; Producto, chr(39) &amp;amp; '}&amp;gt;} Cliente)&amp;gt;0"}&amp;gt;*') &amp;amp; chr(39) &amp;amp; '}&amp;gt;} Cliente)&amp;gt;0"}&amp;gt;} Valor)'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 15:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strict-AND/m-p/543175#M202982</guid>
      <dc:creator>markmccoid</dc:creator>
      <dc:date>2013-11-19T15:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Strict AND</title>
      <link>https://community.qlik.com/t5/QlikView/Strict-AND/m-p/543176#M202983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Christian&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yup, something like you said above should help :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;select distinct &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product_id ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Producto as List_Producto&amp;nbsp;&amp;nbsp;&amp;nbsp; \\ rename it to avoid duplicate field name, or maybe drop Producto from source table&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;resident Products;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Bill&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 15:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strict-AND/m-p/543176#M202983</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-19T15:58:05Z</dc:date>
    </item>
  </channel>
</rss>

