<?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 Syntax Error - Month End Count + Condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Syntax-Error-Month-End-Count-Condition/m-p/152523#M504372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Michael, but it's surves my purpose as the project file is a daily one only and will be new for each months so i am not worried about it.&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Shumail Hussain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Aug 2009 12:06:57 GMT</pubDate>
    <dc:creator>shumailh</dc:creator>
    <dc:date>2009-08-16T12:06:57Z</dc:date>
    <item>
      <title>Syntax Error - Month End Count + Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-Error-Month-End-Count-Condition/m-p/152517#M504366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to count the month end numbers of a field AIF where AIF in P and A but it's not working using below code, Can any one please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;count(if(LoadDate_Active=monthend(LoadDate_Active), {$&amp;lt;AIF = {"P"}&amp;gt; + $&amp;lt;AIF = {"A"}&amp;gt;} AIF))&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards,&lt;BR /&gt;Shumail Hussain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Aug 2009 20:00:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-Error-Month-End-Count-Condition/m-p/152517#M504366</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2009-08-09T20:00:15Z</dc:date>
    </item>
    <item>
      <title>Syntax Error - Month End Count + Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-Error-Month-End-Count-Condition/m-p/152518#M504367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shumail,&lt;BR /&gt;Try first the form without set analysis:&lt;BR /&gt;count(if(LoadDate_Active=monthend(LoadDate_Active) and (AIF='P' or AIF='A'), AIF))&lt;BR /&gt;If it works, and you still want to use set analysis, try to change it to:&lt;BR /&gt;count({$&amp;lt;AIF={"P","A"}&amp;gt;} if(LoadDate_Active=monthend(LoadDate_Active),AIF))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Aug 2009 20:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-Error-Month-End-Count-Condition/m-p/152518#M504367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-09T20:58:37Z</dc:date>
    </item>
    <item>
      <title>Syntax Error - Month End Count + Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-Error-Month-End-Count-Condition/m-p/152519#M504368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;I tried but both of the code are not working... &lt;IMG alt="Tongue Tied" src="http://community.qlik.com/emoticons/emotion-7.gif" /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Shumail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Aug 2009 23:04:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-Error-Month-End-Count-Condition/m-p/152519#M504368</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2009-08-09T23:04:58Z</dc:date>
    </item>
    <item>
      <title>Syntax Error - Month End Count + Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-Error-Month-End-Count-Condition/m-p/152520#M504369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Well, the first expression is very straightforward. Can you tell what the "not working" means... If it doesn't return anything, it could be that there is no data matching the conditions, or maybe the date condition tries to compare data in different formats(?) In the latter case, you have to make sure that the format is the same, for example num(LoadDate_Active)=num(monthend(LoadDate_Active)) One more thing - make sure that the fields you use in a chart expressions are not the key fields.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Aug 2009 23:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-Error-Month-End-Count-Condition/m-p/152520#M504369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-09T23:33:39Z</dc:date>
    </item>
    <item>
      <title>Syntax Error - Month End Count + Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-Error-Month-End-Count-Condition/m-p/152521#M504370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No working means, it's showing no value as i know there's a value. As per the code it looks fine and ok. I tried it through typecasting but my system got hanged everytime.. &lt;IMG alt="Angry" src="http://community.qlik.com/emoticons/emotion-12.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;=count(if(Date(LoadDate_Active, "DDMMYY")=Monthend(Date(LoadDate_Active, "DDMMYY")) and (AIF='P' or AIF='A'), AIF))&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;below is the message which appears:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have tried the below code which is working fine and my system not going hanged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;=count(if(day(LoadDate_Active)=day(Monthend(LoadDate_Active)) and (AIF='P' or AIF='A'), AIF))&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2009 15:08:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-Error-Month-End-Count-Condition/m-p/152521#M504370</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2009-08-12T15:08:56Z</dc:date>
    </item>
    <item>
      <title>Syntax Error - Month End Count + Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-Error-Month-End-Count-Condition/m-p/152522#M504371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see - when you define format, it must be in single quotes: date(LoadDate_Active, 'DDMMYY').&lt;BR /&gt;Be careful with day() function, it is unique only within one month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2009 22:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-Error-Month-End-Count-Condition/m-p/152522#M504371</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-12T22:27:18Z</dc:date>
    </item>
    <item>
      <title>Syntax Error - Month End Count + Condition</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-Error-Month-End-Count-Condition/m-p/152523#M504372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Michael, but it's surves my purpose as the project file is a daily one only and will be new for each months so i am not worried about it.&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Shumail Hussain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Aug 2009 12:06:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-Error-Month-End-Count-Condition/m-p/152523#M504372</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2009-08-16T12:06:57Z</dc:date>
    </item>
  </channel>
</rss>

