<?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 Expression with an and condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-with-an-and-condition/m-p/1148590#M519943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a graph in which I would like to filter values based on two conditions, the statecode shoud be 0 and the statereason should be 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;STATECODE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {0}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TEAM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I add an and statement like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;STATECODE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {0}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;STATEREASON= {2}&amp;gt;} TEAM) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I get an error (memory exceeded). Any thoughts where I go wrong&amp;gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Aug 2016 09:35:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-08-22T09:35:13Z</dc:date>
    <item>
      <title>Expression with an and condition</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-an-and-condition/m-p/1148590#M519943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a graph in which I would like to filter values based on two conditions, the statecode shoud be 0 and the statereason should be 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;STATECODE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {0}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TEAM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I add an and statement like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;STATECODE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {0}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;STATEREASON= {2}&amp;gt;} TEAM) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I get an error (memory exceeded). Any thoughts where I go wrong&amp;gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2016 09:35:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-an-and-condition/m-p/1148590#M519943</guid>
      <dc:creator />
      <dc:date>2016-08-22T09:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with an and condition</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-an-and-condition/m-p/1148591#M519944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with a comma instead of and:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({$&amp;lt;STATECODE = {0}&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;,&lt;/SPAN&gt; STATEREASON= {2}&amp;gt;} TEAM)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2016 09:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-an-and-condition/m-p/1148591#M519944</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-22T09:36:03Z</dc:date>
    </item>
  </channel>
</rss>

