<?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 Re: Opening amount in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Opening-amount/m-p/405471#M150896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's suppose you have a date filed like "MMM-YYYY" (ex: Jan-2013)&lt;/P&gt;&lt;P&gt;Now your formula should look like:&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;Date = {"&amp;lt;$(=getcurrentselections(Date))"}&amp;gt;} Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 May 2013 13:29:18 GMT</pubDate>
    <dc:creator>jvitantonio</dc:creator>
    <dc:date>2013-05-24T13:29:18Z</dc:date>
    <item>
      <title>Opening amount</title>
      <link>https://community.qlik.com/t5/QlikView/Opening-amount/m-p/405470#M150895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;Hi All.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en-za" style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;I’m hoping you can assist with this basic formula:&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en-za" style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;I am trying to total up transactions (AMOUNT) up and until (but not including) the month selected.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en-za" style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;So, if I select 2013 (YEAR), May (MONTH), I would like the column to show the total of AMOUNT from the beginning of time until the end of April 2013.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en-za" style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;Any ideas?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN lang="en-za" style="font-family: calibri, verdana, arial, sans-serif; font-size: 12pt;"&gt;Thanks again&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 13:23:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opening-amount/m-p/405470#M150895</guid>
      <dc:creator />
      <dc:date>2013-05-24T13:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Opening amount</title>
      <link>https://community.qlik.com/t5/QlikView/Opening-amount/m-p/405471#M150896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's suppose you have a date filed like "MMM-YYYY" (ex: Jan-2013)&lt;/P&gt;&lt;P&gt;Now your formula should look like:&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;Date = {"&amp;lt;$(=getcurrentselections(Date))"}&amp;gt;} Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 13:29:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opening-amount/m-p/405471#M150896</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2013-05-24T13:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Opening amount</title>
      <link>https://community.qlik.com/t5/QlikView/Opening-amount/m-p/405472#M150897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're going to need a year-month field if you don't have a date field already. If you have a date field you can use this:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;YEAR=,MONTH=,MyDate={'&amp;lt;$(=monthstart(max(MyDate)))'}&amp;gt;}AMOUNT)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 13:29:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opening-amount/m-p/405472#M150897</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-24T13:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Opening amount</title>
      <link>https://community.qlik.com/t5/QlikView/Opening-amount/m-p/405473#M150898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the prompt reply Gysbert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working with pieta1230 on this, and have tried your formula above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a PERIODKEY field which I bring through as YEAR &amp;amp; num(MONTH,'00') as PERIODKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i use your formula, i replace 'MyDate' with 'PERIODKEY' and the result of the selection:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YEAR=2013&lt;BR /&gt;MONTH=FEB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;brings through all data until the end of 2012, but does not include transactions from Jan 2013.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 13:46:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opening-amount/m-p/405473#M150898</guid>
      <dc:creator />
      <dc:date>2013-05-24T13:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Opening amount</title>
      <link>https://community.qlik.com/t5/QlikView/Opening-amount/m-p/405474#M150899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your PERIODKEY field should preferably be a number. YEAR*12+num(MONTH) or YEAR*100+Month would be better. Then this should work: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sum({&amp;lt;YEAR=,MONTH=,PERIODKEY={'&amp;lt;$(=max(PERIODKEY))'}&amp;gt;}AMOUNT)&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;But if PERIODKEY is a string than maxstring ought to work too, maybe just a bit slower.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 13:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opening-amount/m-p/405474#M150899</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-24T13:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Opening amount</title>
      <link>https://community.qlik.com/t5/QlikView/Opening-amount/m-p/405475#M150900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert - that did the trick!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 13:58:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opening-amount/m-p/405475#M150900</guid>
      <dc:creator />
      <dc:date>2013-05-24T13:58:44Z</dc:date>
    </item>
  </channel>
</rss>

