<?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: Multiple conditions // Error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-conditions-Error/m-p/868754#M303835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Start by putting parentheses around &lt;STRONG&gt;(&lt;/STRONG&gt; BC='yes' or CD='yes' &lt;STRONG&gt;)&lt;/STRONG&gt;. Usually an OR has lower order of precedence.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 May 2015 09:11:43 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2015-05-28T09:11:43Z</dc:date>
    <item>
      <title>Multiple conditions // Error</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-conditions-Error/m-p/868753#M303834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quick question: &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I am stuck with below example. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Eg. John has 206 saved sessions with 76 ABs (Value='yes') and another 37 with BCs and another 9 CDs.&lt;/P&gt;&lt;P&gt;I am trying to get the number of distinct sessions with ABs and (BCs or CDs). &lt;/P&gt;&lt;P&gt;When I put the formula as below, it does not give me a result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 784px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="82"&gt;User&lt;/TD&gt;&lt;TD class="xl63" width="110"&gt;DISTINCT SessionIDs&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="83"&gt;AB&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="66"&gt;BC&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="70"&gt;CD&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="373"&gt;&lt;STRONG&gt;Count(DISTINCT if(AB = 'yes' and BC='yes' or CD='yes', SessionID, Null())&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;John&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;206&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;76&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;37&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;9&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Andy&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Chris&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;118&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;17&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Alex&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;244&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;40&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;36&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Peter&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;200&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;15&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;15&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Matt&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;228&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;16&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;19&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;12&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would highly appreciate if someone could help me out. Is there a syntax error or a problem with the "and" / "or" usage?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 09:08:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-conditions-Error/m-p/868753#M303834</guid>
      <dc:creator />
      <dc:date>2015-05-28T09:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple conditions // Error</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-conditions-Error/m-p/868754#M303835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Start by putting parentheses around &lt;STRONG&gt;(&lt;/STRONG&gt; BC='yes' or CD='yes' &lt;STRONG&gt;)&lt;/STRONG&gt;. Usually an OR has lower order of precedence.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 09:11:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-conditions-Error/m-p/868754#M303835</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-05-28T09:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple conditions // Error</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-conditions-Error/m-p/868755#M303836</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;you must take care of your brackets.&lt;/P&gt;&lt;P&gt;In your example, you should put it like &amp;gt;&amp;gt; IF(AB = 'yes' AND (BC = 'yes' or CD = 'yes') &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;=&amp;gt; That will count the records where&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - AB is true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - AND (either BC or CD) is true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 09:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-conditions-Error/m-p/868755#M303836</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-05-28T09:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple conditions // Error</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-conditions-Error/m-p/868756#M303837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this an example of what you're trying to accomplish ?&lt;/P&gt;&lt;P&gt;Note that a complex datamodel (i.e. one where fields are located in different tables) may provide poor performance or fail to produce correct results..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 09:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-conditions-Error/m-p/868756#M303837</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-05-28T09:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple conditions // Error</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-conditions-Error/m-p/868757#M303838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=count(DISTINCT {$ &amp;lt;AB={yes}&amp;gt;*(&amp;lt;BC={yes}&amp;gt;+&amp;lt;CD={yes}&amp;gt;)} SessionID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 19:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-conditions-Error/m-p/868757#M303838</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-05-28T19:01:49Z</dc:date>
    </item>
  </channel>
</rss>

