<?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 If to Set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-to-Set-analysis/m-p/404318#M1159045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am having problem to convert this expression to Set analysis......Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(if(CDE &amp;lt;&amp;gt; null() and (TYPE_CDE = '00001' OR MAC_CDE = null()) and STATUS &amp;lt;&amp;gt; 'CANCEL' and REQUEST= 1,ORDER))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2013 16:13:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-08T16:13:38Z</dc:date>
    <item>
      <title>If to Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-to-Set-analysis/m-p/404318#M1159045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am having problem to convert this expression to Set analysis......Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(if(CDE &amp;lt;&amp;gt; null() and (TYPE_CDE = '00001' OR MAC_CDE = null()) and STATUS &amp;lt;&amp;gt; 'CANCEL' and REQUEST= 1,ORDER))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 16:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-to-Set-analysis/m-p/404318#M1159045</guid>
      <dc:creator />
      <dc:date>2013-01-08T16:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: If to Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-to-Set-analysis/m-p/404319#M1159046</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;For the condition &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;(TYPE_CDE = '00001' OR MAC_CDE = null()), I recommend to create a flag in the script, something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;select *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;TYPE_CDE = '00001' OR isnull(MAC_CDE),1,0) as Flag_CDE&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;from ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;Then the expression should be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;count({$&amp;lt;CDE={*},STATUS-={'CANCEL'},REQUEST={1},Flag_CDE={1}&amp;gt;} ORDER)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;Hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;Regards!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 17:00:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-to-Set-analysis/m-p/404319#M1159046</guid>
      <dc:creator />
      <dc:date>2013-01-08T17:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: If to Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-to-Set-analysis/m-p/404320#M1159047</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;CDE={*},TYPE_CDE={'00001'}, STATUS={*}, REQUEST={1}&amp;gt; + &amp;lt;CDE={*},MAC_CDE-={*}, STATUS={*}, REQUEST={1}&amp;gt;} &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;ORDER&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 17:04:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-to-Set-analysis/m-p/404320#M1159047</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-01-08T17:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: If to Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-to-Set-analysis/m-p/404321#M1159048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou Celembarasan, I am bit confused......Actually I am having lot of conditions but I mentioned the key conditions where I was having problem.....for representing OR condition Is this the only way, need to specify all the conditions again....Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 17:51:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-to-Set-analysis/m-p/404321#M1159048</guid>
      <dc:creator />
      <dc:date>2013-01-08T17:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: If to Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-to-Set-analysis/m-p/404322#M1159049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The way to handle OR condition suggested by Gabriela allows to avoid repeating all over again.&amp;nbsp; Apparently you need to modify the script in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 18:09:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-to-Set-analysis/m-p/404322#M1159049</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-08T18:09:57Z</dc:date>
    </item>
  </channel>
</rss>

