<?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 - Operator (+, *, /, -) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Operator/m-p/315392#M499076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;try this count({$&amp;lt;[field name]+={set1,set2}&amp;gt;} distinct client)--for union&lt;/P&gt;&lt;P&gt;count({$&amp;lt;[field name]-={set2}&amp;gt;}distinct client)----for getting only set1&lt;/P&gt;&lt;P&gt;count({$&amp;lt;[field name]*={set1,set2}&amp;gt;}distinct client) ----for intersection&lt;/P&gt;&lt;P&gt;count({$&amp;lt;[field name]/={set1,set2}&amp;gt;}distinct client)------ set1 XOR set2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Dec 2016 07:50:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-12-22T07:50:34Z</dc:date>
    <item>
      <title>Set Analysis - Operator (+, *, /, -)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Operator/m-p/315389#M499073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;﻿Hi to all, i have a big problem that i hope to solve it with your help.... &lt;/P&gt;&lt;P&gt;I would like to use the "Set Analysis" &lt;SPAN style="text-decoration: underline;"&gt;operator&lt;/SPAN&gt; with &lt;SPAN style="text-decoration: underline;"&gt;Bookmarks&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;I have two bookmarks called Set1 and Set2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In these bookmarks there are the results of two different selections, for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #800000;"&gt;Set1 &lt;/SPAN&gt;= Selection of product '&lt;STRONG style="color: #ff0000;"&gt;A&lt;/STRONG&gt;'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #800000;"&gt;Set2 &lt;/SPAN&gt;= Selection of product '&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/SPAN&gt;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="6176" alt="Immagin0e.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/6176_Immagin0e.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These two results sets are supposed to have some common records (customers who bought &lt;SPAN style="color: #333333; text-decoration: underline;"&gt;both&lt;/SPAN&gt; 'A' &lt;SPAN style="text-decoration: underline;"&gt;and&lt;/SPAN&gt; 'B').&lt;/P&gt;&lt;P&gt;I loaded the data of who bought the product (&lt;STRONG&gt;clients&lt;/STRONG&gt;) and obvious the &lt;STRONG&gt;product&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the results I expect to get from each operator:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- Set1 + Set2 (union)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;All customers who bought 'A' and all customers who bought 'B'. Duplicated records should be excluded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- Set1 - Set2 (difference)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;All customers who bought 'A' and NOT have bought 'B'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- Set1 * Set2 (intersection)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Customers who bought &lt;SPAN style="color: #333333; text-decoration: underline;"&gt;both&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; 'A'&lt;/SPAN&gt; &lt;SPAN style="text-decoration: underline;"&gt;and&lt;/SPAN&gt; 'B'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- Set1 / Set2 (XOR)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Customers who bought 'A' XOR 'B' (customers who bought both the models are excluded).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'arial black', 'avant garde';"&gt;Which is the correct syntax for these operations?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Paolo.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 16:02:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Operator/m-p/315389#M499073</guid>
      <dc:creator>rnepla83</dc:creator>
      <dc:date>2011-07-28T16:02:51Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - Operator (+, *, /, -)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Operator/m-p/315390#M499074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I don't understand the question. Your descriptions seem to be on the right track. From the look of those results, everyone who bought A, also bought B. That's why the union and intersection are the same and the difference and XOR are both 0. Is 249634 your entire dataset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the Set Expression you are using? If the sets aren't working, I suppose the union and intersection could be returning every record, while the difference and XOR return nothing. I can't really tell based on the information provided.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 19:23:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Operator/m-p/315390#M499074</guid>
      <dc:creator />
      <dc:date>2011-07-28T19:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Operator (+, *, /, -)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Operator/m-p/315391#M499075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/nmiller" id="jive-2606363401835499542" style="font-size: 12px; color: #007fc0; font-weight: bold;"&gt;NMiller&lt;/A&gt;, thanks for your reply. &lt;/P&gt;&lt;P&gt;Sorry for the image &lt;SPAN class="hps" title="Click for alternate translations"&gt;I just wanted to&lt;/SPAN&gt; &lt;SPAN class="hps" title="Click for alternate translations"&gt;show&lt;/SPAN&gt; &lt;SPAN class="hps" title="Click for alternate translations"&gt;the mechanism of my sheet&lt;/SPAN&gt;, don't look the result of unione, intersezione, xor, differenza. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt;I&lt;/SPAN&gt; &lt;SPAN class="hps" title="Click for alternate translations"&gt;tried to use&lt;/SPAN&gt; &lt;SPAN class="hps" title="Click for alternate translations"&gt;these formulas for the union (&lt;/SPAN&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt;The&lt;/SPAN&gt; &lt;SPAN class="hps" title="Click for alternate translations"&gt;same&lt;/SPAN&gt; &lt;SPAN class="hps" title="Click for alternate translations"&gt;formula was&lt;/SPAN&gt; &lt;SPAN class="hps" title="Click for alternate translations"&gt;used&lt;/SPAN&gt; &lt;SPAN class="hps" title="Click for alternate translations"&gt;for the other operators *, -, xor&lt;/SPAN&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt;)&lt;/SPAN&gt;&lt;SPAN title="Click for alternate translations"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN title="Click for alternate translations"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN title="Click for alternate translations"&gt;1) =&lt;STRONG&gt;count&lt;/STRONG&gt;({&amp;lt;CLIENT=p({Set1}) + p({Set2})&amp;gt;}&amp;nbsp; DISTINCT &lt;STRONG&gt;CLIENT&lt;/STRONG&gt;) &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2) =&lt;STRONG&gt;count&lt;/STRONG&gt;({Set1 + Set2}&amp;nbsp; DISTINCT &lt;STRONG&gt;CLIENT&lt;/STRONG&gt;) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt;but in both&lt;/SPAN&gt; &lt;SPAN class="hps" title="Click for alternate translations"&gt;cases&lt;/SPAN&gt; &lt;SPAN class="hps" title="Click for alternate translations"&gt;the results&lt;/SPAN&gt; &lt;SPAN class="hps" title="Click for alternate translations"&gt;aren't&lt;/SPAN&gt; &lt;SPAN class="hps" title="Click for alternate translations"&gt;correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt;Which is the correct syntax for these operations for find the union, intersection, XOR and difference between the sets (Set1 Set2)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt;&lt;IMG __jive_id="6186" alt="Immagine.png" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/6186_Immagine.png" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps" title="Click for alternate translations"&gt;Thanks a lot, Paolo.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 09:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Operator/m-p/315391#M499075</guid>
      <dc:creator>rnepla83</dc:creator>
      <dc:date>2011-07-29T09:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Operator (+, *, /, -)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Operator/m-p/315392#M499076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;try this count({$&amp;lt;[field name]+={set1,set2}&amp;gt;} distinct client)--for union&lt;/P&gt;&lt;P&gt;count({$&amp;lt;[field name]-={set2}&amp;gt;}distinct client)----for getting only set1&lt;/P&gt;&lt;P&gt;count({$&amp;lt;[field name]*={set1,set2}&amp;gt;}distinct client) ----for intersection&lt;/P&gt;&lt;P&gt;count({$&amp;lt;[field name]/={set1,set2}&amp;gt;}distinct client)------ set1 XOR set2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 07:50:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Operator/m-p/315392#M499076</guid>
      <dc:creator />
      <dc:date>2016-12-22T07:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Operator (+, *, /, -)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Operator/m-p/315393#M499077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bhargavi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thenak sfor your reply but my question it was made in 2011, &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; i solved problems 5 years ago.&lt;/P&gt;&lt;P&gt;Thanks anyway&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 10:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Operator/m-p/315393#M499077</guid>
      <dc:creator>rnepla83</dc:creator>
      <dc:date>2016-12-22T10:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Operator (+, *, /, -)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Operator/m-p/315394#M499078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If that's the case, Paolo, maybe you want to close the discussion by posting your solution and/or marking your own answer as correct. That way, you'll avoid that other members continue a discussion on an issue that has been resolved for 5 years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 11:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Operator/m-p/315394#M499078</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-12-22T11:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Operator (+, *, /, -)</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Operator/m-p/315395#M499079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, thank you for the comment.&lt;/P&gt;&lt;P&gt;In that case the answer of &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/bhargaviy10"&gt;bhargaviy10&lt;/A&gt;&lt;/STRONG&gt; is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 12:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Operator/m-p/315395#M499079</guid>
      <dc:creator>rnepla83</dc:creator>
      <dc:date>2016-12-22T12:45:10Z</dc:date>
    </item>
  </channel>
</rss>

