<?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 Problem with variable in the Sum Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-variable-in-the-Sum-Expression/m-p/353527#M131152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I trying to set several expression which should return the sum of the Amount of the Remaining Invoices (Not yet paid). One for the Current week and the others from the previous weeks. The expression CurrentWeek is like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;Sum({&amp;lt;CalendarWeek={$(vCurrentWeek)}&amp;gt;} [Remaining Invoices.Amount])&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And It works.But when I try to set the sum for the previous weeh (CurrentWeek - 1) it fails&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Sum({&amp;lt;CalendarWeek={$(vCurrentWeek-1)}&amp;gt;} [Remaining Invoices.Amount])&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What Am I doing wrong ?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Mar 2012 07:45:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-15T07:45:33Z</dc:date>
    <item>
      <title>Problem with variable in the Sum Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-variable-in-the-Sum-Expression/m-p/353527#M131152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I trying to set several expression which should return the sum of the Amount of the Remaining Invoices (Not yet paid). One for the Current week and the others from the previous weeks. The expression CurrentWeek is like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;Sum({&amp;lt;CalendarWeek={$(vCurrentWeek)}&amp;gt;} [Remaining Invoices.Amount])&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And It works.But when I try to set the sum for the previous weeh (CurrentWeek - 1) it fails&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Sum({&amp;lt;CalendarWeek={$(vCurrentWeek-1)}&amp;gt;} [Remaining Invoices.Amount])&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What Am I doing wrong ?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 07:45:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-variable-in-the-Sum-Expression/m-p/353527#M131152</guid>
      <dc:creator />
      <dc:date>2012-03-15T07:45:33Z</dc:date>
    </item>
    <item>
      <title>Problem with variable in the Sum Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-variable-in-the-Sum-Expression/m-p/353528#M131153</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;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;Sum({&amp;lt;CalendarWeek={'$(=(vCurrentWeek-1))'}&amp;gt;} [Remaining Invoices.Amount])&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 07:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-variable-in-the-Sum-Expression/m-p/353528#M131153</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-03-15T07:49:10Z</dc:date>
    </item>
    <item>
      <title>Problem with variable in the Sum Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-variable-in-the-Sum-Expression/m-p/353529#M131154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's right! thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 07:56:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-variable-in-the-Sum-Expression/m-p/353529#M131154</guid>
      <dc:creator />
      <dc:date>2012-03-15T07:56:46Z</dc:date>
    </item>
  </channel>
</rss>

