<?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 'AND' + 'OR' in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AND-OR-in-Set-Analysis/m-p/353034#M131025</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to provide a sum of 'Cost' where 'Type 1' = 1 and 'Field A' or 'Field B' = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( Type = 'Type 1' and (Field A = 1 OR Field B = 1) Cost )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone could help with Set analysis syntax to perform this, that would be great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2012 13:38:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-14T13:38:39Z</dc:date>
    <item>
      <title>'AND' + 'OR' in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/AND-OR-in-Set-Analysis/m-p/353034#M131025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to provide a sum of 'Cost' where 'Type 1' = 1 and 'Field A' or 'Field B' = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum( Type = 'Type 1' and (Field A = 1 OR Field B = 1) Cost )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone could help with Set analysis syntax to perform this, that would be great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 13:38:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AND-OR-in-Set-Analysis/m-p/353034#M131025</guid>
      <dc:creator />
      <dc:date>2012-06-14T13:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: 'AND' + 'OR' in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/AND-OR-in-Set-Analysis/m-p/353035#M131026</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;Written from memory (check syntax and parentheses), but something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13396819413426647" jivemacro_uid="_13396819413426647"&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;Sum({&amp;lt; Type = {'Type 1'} &amp;gt; * (&amp;lt; [Field A] = {1} &amp;gt; + &amp;lt; [Field B] = {1}&amp;gt;) } Cost )&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 13:48:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AND-OR-in-Set-Analysis/m-p/353035#M131026</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-06-14T13:48:46Z</dc:date>
    </item>
  </channel>
</rss>

