<?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 &amp;quot;OR&amp;quot; operator in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/quot-OR-quot-operator-in-set-analysis/m-p/287467#M1196189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(sum(DISTINCT {&amp;lt;column_A={'&amp;gt;0'}&amp;gt;}quantity) or sum(DISTINCT {&amp;lt;column_B={'&amp;gt;0'}&amp;gt;}quantity),SUM(distinct (quantity))) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;it works in my case..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 May 2011 05:14:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-11T05:14:02Z</dc:date>
    <item>
      <title>"OR" operator in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/quot-OR-quot-operator-in-set-analysis/m-p/287465#M1196187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to QV,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a set analysis, I would like to sum according to conditions that are stocked in two different columns. Let's say column A and B have to be positive&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;sum(DISTINCT {&amp;lt;column_A={'&amp;gt;0'}, column_B={'&amp;gt;0'}&amp;gt;} quantity) gives me the quantity if &lt;SPAN style="text-decoration: underline;"&gt;both conditions ar realized&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the * operator seems to &lt;SPAN style="text-decoration: underline;"&gt;work only for conditions within the same column&lt;/SPAN&gt;, for instance : column_A={'b' * 'a'}&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;sum(DISTINCT {&amp;lt;column_A={'&amp;gt;0'} or column_B={'&amp;gt;0'}&amp;gt;} quantity) &lt;SPAN style="text-decoration: underline;"&gt;seems not to work at all&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the feeling that this is a very simple problem but looking for "set analysis or" in the forum doesn't help a lot as 'or' is not a very distinctive word...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone can give me a hint ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 16:16:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-OR-quot-operator-in-set-analysis/m-p/287465#M1196187</guid>
      <dc:creator />
      <dc:date>2011-05-10T16:16:57Z</dc:date>
    </item>
    <item>
      <title>"OR" operator in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/quot-OR-quot-operator-in-set-analysis/m-p/287466#M1196188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; The"+"-sign is used for OR in set analysis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 00:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-OR-quot-operator-in-set-analysis/m-p/287466#M1196188</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-11T00:55:20Z</dc:date>
    </item>
    <item>
      <title>"OR" operator in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/quot-OR-quot-operator-in-set-analysis/m-p/287467#M1196189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(sum(DISTINCT {&amp;lt;column_A={'&amp;gt;0'}&amp;gt;}quantity) or sum(DISTINCT {&amp;lt;column_B={'&amp;gt;0'}&amp;gt;}quantity),SUM(distinct (quantity))) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;it works in my case..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 05:14:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-OR-quot-operator-in-set-analysis/m-p/287467#M1196189</guid>
      <dc:creator />
      <dc:date>2011-05-11T05:14:02Z</dc:date>
    </item>
    <item>
      <title>"OR" operator in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/quot-OR-quot-operator-in-set-analysis/m-p/287468#M1196190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Had the same question, already posted that but then I saw this reply to a similar question in the forum:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/51239#51239"&gt;http://community.qlik.com/message/51239#51239&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which implies that your solution would be:&lt;/P&gt;&lt;P&gt;sum(DISTINCT {&amp;lt;column_A={'&amp;gt;0'}&amp;gt; + &amp;lt;column_B={'&amp;gt;0'}&amp;gt;} quantity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(deleted my question and added this reply instead)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 07:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-OR-quot-operator-in-set-analysis/m-p/287468#M1196190</guid>
      <dc:creator />
      <dc:date>2011-06-01T07:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: "OR" operator in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/quot-OR-quot-operator-in-set-analysis/m-p/287469#M1196191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with what’s being said. In Set analysis the logical operator “or” is written with a “+”. It works fine for me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax is important, the + should be placed between the conditions of the set analysis : { www.coetsens.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;De : nessinot &lt;A href="mailto:qliktech@sgaur.hosted.jivesoftware.com"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Envoyé : mercredi 1 juin 2011 09:33&lt;/P&gt;&lt;P&gt;À : luc_fr_75&lt;/P&gt;&lt;P&gt;Objet : &lt;A href="New to QlikView"&gt;&lt;/A&gt; - Re: "OR" operator in set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;http://community.qlik.com/index.jspa&amp;gt; QlikCommunity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: "OR" operator in set analysis &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;created by nessinot &amp;lt;http://community.qlik.com/people/nessinot&amp;gt;  in New to QlikView - View the full discussion &amp;lt;http://community.qlik.com/message/120945#120945&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 08:27:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-OR-quot-operator-in-set-analysis/m-p/287469#M1196191</guid>
      <dc:creator />
      <dc:date>2011-06-02T08:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: "OR" operator in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/quot-OR-quot-operator-in-set-analysis/m-p/287470#M1196192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;=Count({$&amp;lt;column_A={'&amp;gt;0'}&amp;gt; + &amp;lt;column_B={'&amp;gt;0'}&amp;gt;}DISTINCT quantity)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 11:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-OR-quot-operator-in-set-analysis/m-p/287470#M1196192</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-09T11:42:35Z</dc:date>
    </item>
  </channel>
</rss>

