<?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 Operators and or or or or whaaat? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Operators-and-or-or-or-or-whaaat/m-p/1517320#M457391</link>
    <description>&lt;P&gt;Hi nice people,&lt;/P&gt;&lt;P&gt;I have a question regarding set analysis with operators.&lt;/P&gt;&lt;P&gt;I figured out how to use AND &amp;amp; OR Operators... here my simplified solution:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND (show customer with customerID 1234 that bought Product A):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt; [CustomerID] = {'1234'}&amp;gt; &lt;STRONG&gt;*&lt;/STRONG&gt; &amp;lt; [Product] = {'A'}&amp;gt; }[Values])&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OR (show everything that is Product A or Product B:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt; [Product] = {'A'}&amp;gt; &lt;STRONG&gt;+&lt;/STRONG&gt; &amp;lt; [Product] = {'B'}&amp;gt; }[Values])&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;HOWEVER&lt;/U&gt;&lt;/STRONG&gt;, when I combine them to select &lt;STRONG&gt;Customer with ID 1234 that bought Product A or Product B&lt;/STRONG&gt; something doesn't work out &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; - what did I do wrong&lt;/P&gt;&lt;P&gt;??? &lt;STRONG&gt;=SUM({&amp;lt; [CustomerID] = {'1234'}&amp;gt; * &amp;lt; [Product] = {'A'}&amp;gt; + &amp;lt; [Product] = {'B'}&amp;gt;}[Values])&amp;nbsp;&lt;/STRONG&gt; ???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; thx&lt;/P&gt;&lt;P&gt;all the best&lt;/P&gt;&lt;P&gt;george&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 21:46:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T21:46:06Z</dc:date>
    <item>
      <title>Set Analysis Operators and or or or or whaaat?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Operators-and-or-or-or-or-whaaat/m-p/1517320#M457391</link>
      <description>&lt;P&gt;Hi nice people,&lt;/P&gt;&lt;P&gt;I have a question regarding set analysis with operators.&lt;/P&gt;&lt;P&gt;I figured out how to use AND &amp;amp; OR Operators... here my simplified solution:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND (show customer with customerID 1234 that bought Product A):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt; [CustomerID] = {'1234'}&amp;gt; &lt;STRONG&gt;*&lt;/STRONG&gt; &amp;lt; [Product] = {'A'}&amp;gt; }[Values])&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OR (show everything that is Product A or Product B:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt; [Product] = {'A'}&amp;gt; &lt;STRONG&gt;+&lt;/STRONG&gt; &amp;lt; [Product] = {'B'}&amp;gt; }[Values])&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;HOWEVER&lt;/U&gt;&lt;/STRONG&gt;, when I combine them to select &lt;STRONG&gt;Customer with ID 1234 that bought Product A or Product B&lt;/STRONG&gt; something doesn't work out &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; - what did I do wrong&lt;/P&gt;&lt;P&gt;??? &lt;STRONG&gt;=SUM({&amp;lt; [CustomerID] = {'1234'}&amp;gt; * &amp;lt; [Product] = {'A'}&amp;gt; + &amp;lt; [Product] = {'B'}&amp;gt;}[Values])&amp;nbsp;&lt;/STRONG&gt; ???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; thx&lt;/P&gt;&lt;P&gt;all the best&lt;/P&gt;&lt;P&gt;george&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:46:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Operators-and-or-or-or-or-whaaat/m-p/1517320#M457391</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T21:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Operators and or or or or whaaat?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Operators-and-or-or-or-or-whaaat/m-p/1517333#M457392</link>
      <description>&lt;P&gt;If you want to combine multiple AND's and OR's you need to use appropriate brackets. And this is within a set analysis not different to any other expression, usually applied within if-loops, like:&lt;/P&gt;&lt;P&gt;SUM({&amp;lt; [CustomerID] = {'1234'}&amp;gt; * &lt;STRONG&gt;(&lt;/STRONG&gt;&amp;lt; [Product] = {'A'}&amp;gt; + &amp;lt; [Product] = {'B'}&amp;gt;&lt;STRONG&gt;)&lt;/STRONG&gt;}[Values])&lt;/P&gt;&lt;P&gt;Whereby if I understand your target right it could be done easier respectively more "classical" in regard to the common used syntax, like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM({&amp;lt; [CustomerID] = {'1234'}, [Product] = {'A','B'}&amp;gt;}[Values])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 12:08:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Operators-and-or-or-or-or-whaaat/m-p/1517333#M457392</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-12-06T12:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Operators and or or or or whaaat?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Operators-and-or-or-or-or-whaaat/m-p/1517336#M457393</link>
      <description>&lt;P&gt;Legend! thank you so much!!!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 12:09:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Operators-and-or-or-or-or-whaaat/m-p/1517336#M457393</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-06T12:09:48Z</dc:date>
    </item>
  </channel>
</rss>

