<?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: Expression containing ''or'' in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-containing-or/m-p/799093#M1029164</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Borja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think in a set_expression, you can also just put both possible values (the ones you want to connect with OR) in one pair of curvy brackets, with a comma&lt;/P&gt;&lt;P&gt;=&amp;gt; Sth like &amp;gt;&amp;gt;&amp;nbsp; sum({&amp;lt;condition = {'text1', 'text2'}&amp;gt;} [field]) &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Feb 2015 15:08:48 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2015-02-26T15:08:48Z</dc:date>
    <item>
      <title>Expression containing ''or''</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-containing-or/m-p/799089#M1029159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em;"&gt;How could I write the ''or'' condition within an expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=sum({&amp;lt;condition={'text'} &lt;STRONG style="font-style: inherit; font-family: inherit; text-decoration: underline;"&gt;or&lt;/STRONG&gt; condition2={'text2'})&amp;gt;} #values)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The goal is to sum only the values coming from 'text' or 'text2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I know how to write it for an ''and'' (just adding "," between both conditions).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Would appreciate any help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 14:58:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-containing-or/m-p/799089#M1029159</guid>
      <dc:creator />
      <dc:date>2015-02-26T14:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Expression containing ''or''</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-containing-or/m-p/799090#M1029161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SUM({&amp;lt;condition = {'text'}&amp;gt; + &amp;lt;condtion2 = {'text2'}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;#values)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 15:03:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-containing-or/m-p/799090#M1029161</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-02-26T15:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Expression containing ''or''</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-containing-or/m-p/799091#M1029162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Borja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The QlikView Help is always worth checking :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Set Operators&lt;/H2&gt;&lt;P&gt;There are several set operators that can be used in set expressions. All set operators use sets as operands and return a set as result.&lt;/P&gt;&lt;P&gt;The order of precedence is:&lt;/P&gt;&lt;P&gt;1. Unary minus (complement)&lt;/P&gt;&lt;P&gt;2. Intersection and Symmetric difference&lt;/P&gt;&lt;P&gt;3. Union and Exclusion&lt;/P&gt;&lt;P&gt;Within a group, the expression is evaluated from left to right. Alternative orders can be defined by standard brackets, which may be necessary because the set operators do not commute. For example, &lt;SPAN class="Bold"&gt;A+(B-C)&lt;/SPAN&gt; is different from &lt;SPAN class="Bold"&gt;(A+B)-C&lt;/SPAN&gt; which in turn is different from &lt;SPAN class="Bold"&gt;(A-C)+B&lt;/SPAN&gt;.&lt;/P&gt;&lt;P class="note"&gt;&lt;SPAN class="Bold"&gt;Note!&lt;/SPAN&gt; &lt;BR /&gt;The use of set operators in combination with basic aggregation expressions involving fields from multiple QlikView tables may cause unpredictable results and should be avoided. E.g. if Quantity and Price are fields from different tables, then the expression sum({$*BM01}Quantity*Price) should be avoided.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Arguments:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE style="margin-right: auto;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Operator&lt;/STRONG&gt; &lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Description&lt;/STRONG&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;+&lt;/TD&gt;&lt;TD&gt;Union. This binary operation returns a set consisting of the records that belong to any of the two set operands.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;TD&gt;Exclusion. This binary operation returns a set of the records that belong to the first but not the other of the two set operands. Also, when used as a unary operator, it returns the complement set.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;*&lt;/TD&gt;&lt;TD&gt;Intersection. This binary operation returns a set consisting of the records that belong to both of the two set operands.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;/&lt;/TD&gt;&lt;TD&gt;Symmetric difference (XOR). This binary operation returns a set consisting of the records that belong to either, but not both of the two set operands.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 15:04:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-containing-or/m-p/799091#M1029162</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-26T15:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Expression containing ''or''</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-containing-or/m-p/799092#M1029163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Condition={'text'}&amp;gt; + &amp;lt;Condition2={'text2'}&amp;gt;} Values)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;SKG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 15:05:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-containing-or/m-p/799092#M1029163</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2015-02-26T15:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Expression containing ''or''</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-containing-or/m-p/799093#M1029164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Borja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think in a set_expression, you can also just put both possible values (the ones you want to connect with OR) in one pair of curvy brackets, with a comma&lt;/P&gt;&lt;P&gt;=&amp;gt; Sth like &amp;gt;&amp;gt;&amp;nbsp; sum({&amp;lt;condition = {'text1', 'text2'}&amp;gt;} [field]) &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 15:08:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-containing-or/m-p/799093#M1029164</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-02-26T15:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Expression containing ''or''</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-containing-or/m-p/799094#M1029165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks it works and save a lot of space!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 15:22:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-containing-or/m-p/799094#M1029165</guid>
      <dc:creator />
      <dc:date>2015-02-26T15:22:43Z</dc:date>
    </item>
  </channel>
</rss>

