<?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 Correct Syntax required in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Correct-Syntax-required/m-p/151130#M716083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the correct syntax for the below code?&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;sum({$&amp;lt;LoadDate = {"1/31/2009"}&amp;gt;} LCY_Amount)+&lt;BR /&gt;sum({$&amp;lt;LoadDate = {"2/28/2009"}&amp;gt;} LCY_Amount)+&lt;BR /&gt;sum({$&amp;lt;LoadDate = {"3/31/2009"}&amp;gt;} LCY_Amount)+&lt;BR /&gt;sum({$&amp;lt;LoadDate = {"4/30/2009"}&amp;gt;} LCY_Amount)+&lt;BR /&gt;sum({$&amp;lt;LoadDate = {"5/31/2009"}&amp;gt;} LCY_Amount)+&lt;BR /&gt;sum({$&amp;lt;LoadDate = {"6/30/2009"}&amp;gt;} LCY_Amount)+&lt;BR /&gt;sum({$&amp;lt;LoadDate = {"7/31/2009"}&amp;gt;} LCY_Amount)&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Shumail Hussain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Aug 2009 21:05:20 GMT</pubDate>
    <dc:creator>shumailh</dc:creator>
    <dc:date>2009-08-05T21:05:20Z</dc:date>
    <item>
      <title>Correct Syntax required</title>
      <link>https://community.qlik.com/t5/QlikView/Correct-Syntax-required/m-p/151130#M716083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the correct syntax for the below code?&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;sum({$&amp;lt;LoadDate = {"1/31/2009"}&amp;gt;} LCY_Amount)+&lt;BR /&gt;sum({$&amp;lt;LoadDate = {"2/28/2009"}&amp;gt;} LCY_Amount)+&lt;BR /&gt;sum({$&amp;lt;LoadDate = {"3/31/2009"}&amp;gt;} LCY_Amount)+&lt;BR /&gt;sum({$&amp;lt;LoadDate = {"4/30/2009"}&amp;gt;} LCY_Amount)+&lt;BR /&gt;sum({$&amp;lt;LoadDate = {"5/31/2009"}&amp;gt;} LCY_Amount)+&lt;BR /&gt;sum({$&amp;lt;LoadDate = {"6/30/2009"}&amp;gt;} LCY_Amount)+&lt;BR /&gt;sum({$&amp;lt;LoadDate = {"7/31/2009"}&amp;gt;} LCY_Amount)&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Shumail Hussain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2009 21:05:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Correct-Syntax-required/m-p/151130#M716083</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2009-08-05T21:05:20Z</dc:date>
    </item>
    <item>
      <title>Correct Syntax required</title>
      <link>https://community.qlik.com/t5/QlikView/Correct-Syntax-required/m-p/151131#M716084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;want do you want to do? The LoadDate is only one date and if on the end of the month you wish to summarize LCY_Amount?&lt;/P&gt;&lt;P&gt;Would a simple Sum(If(LoadDate = Floor(MonthEnd), LCY_Amount)) do the same?&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 03:22:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Correct-Syntax-required/m-p/151131#M716084</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-08-07T03:22:43Z</dc:date>
    </item>
    <item>
      <title>Correct Syntax required</title>
      <link>https://community.qlik.com/t5/QlikView/Correct-Syntax-required/m-p/151132#M716085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're looking for the syntax for a list:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum({&amp;lt;LoadDate={"1/31/2009","2/28/2009","3/31/2009","4/30/2009","5/31/2009","6/30/2009","7/31/2009"}&amp;gt;} LCY_Amount)&lt;/P&gt;&lt;P&gt;If you're looking for all load dates that occur on the end of the month, I'd probably do something like what Peter suggested:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum(if(LoadDate=daystart(monthend(LoadDate)), LCY_Amount))&lt;/P&gt;&lt;P&gt;Or perhaps create a "Loaded on Last Day of Month?" flag, then:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum({&amp;lt;"Loaded on Last Day of Month?"={1}&amp;gt;} LCY_Amount)&lt;/P&gt;&lt;P&gt;Or:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum("Loaded on Last Day of Month?" * LCY_Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 07:21:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Correct-Syntax-required/m-p/151132#M716085</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-08-07T07:21:11Z</dc:date>
    </item>
  </channel>
</rss>

