<?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: Calculating the 4th quarter data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-the-4th-quarter-data/m-p/586327#M1100066</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It likely has to do with the object you use it in.&amp;nbsp; Variable is independent of any object properties, so it works.&lt;/P&gt;&lt;P&gt;The important part that it works now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Apr 2014 16:16:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-04-16T16:16:56Z</dc:date>
    <item>
      <title>Calculating the 4th quarter data</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-the-4th-quarter-data/m-p/586323#M1100060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've a combo chart which measures the opening balance and sales and losses for each quarter of the selected year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does this by taking the opening balance position per quarter, applying the sales, looking at the open balance for the next quarter and then deducing the losses for the previous quarter. This works well apart from the 4th quarter where it can't see the opening balance of the next year&lt;/P&gt;&lt;P&gt;Opening balance is calculated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt; MonthNameAbv = {'Jan','Apr','Jul','Oct'}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" height="282" src="https://community.qlik.com/legacyfs/online/57444_pastedImage_1.png" style="width: 484px; height: 281.813px;" width="484" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was simply using the equation below to get losses&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;=&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; column(1)- below(column(1)) + column (2)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;with column 1 = opening balance &lt;/P&gt;&lt;P&gt;column 2 = sales &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but obviously when i run out of quarters I can't calculate so im trying to substitue the&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below(column(1))&lt;/P&gt;&lt;P&gt;statement with something like the following :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year = {'$(=Addyears(Year,-1)'} ,&amp;nbsp; MonthNameAbv = {'Jan'}&amp;gt;}Amount)) &lt;/P&gt;&lt;P&gt;so i can get the opening balance for the next year.&lt;/P&gt;&lt;P&gt;This isn't quite working and I think its a syntax error, can anyone help please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 13:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-the-4th-quarter-data/m-p/586323#M1100060</guid>
      <dc:creator />
      <dc:date>2014-04-16T13:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the 4th quarter data</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-the-4th-quarter-data/m-p/586324#M1100061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From your description, it looks like it should be&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={"$(=Year+1)"} ,&amp;nbsp; MonthNameAbv = {'Jan'}&amp;gt;}Amount))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 14:12:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-the-4th-quarter-data/m-p/586324#M1100061</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-16T14:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the 4th quarter data</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-the-4th-quarter-data/m-p/586325#M1100062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael that certainly got the answer i wanted simply adding the " ", so it worked perfect as a standalone &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i substitued into the equation it ignored that line, so using the equation below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= if (Quarter = 4,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt; MonthNameAbv = {'Jan','Apr','Jul','Oct'} &amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;Year={"$(=Year+1)"} , MonthNameAbv = {'Jan'}&amp;gt;}Amount) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; column (2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp; column(1)- below(column(1)) + column (2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it basically&amp;nbsp; did&lt;/P&gt;&lt;P&gt;column (1) + column (2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you know if the syntax above is incorrect&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 15:01:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-the-4th-quarter-data/m-p/586325#M1100062</guid>
      <dc:creator />
      <dc:date>2014-04-16T15:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the 4th quarter data</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-the-4th-quarter-data/m-p/586326#M1100064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found that by putting the equation in the set analysis it just wouldn't work for whatever reasons however if I declared a new variable and used that equation defined by michael above in the definition of the variable, THEN used the variable in the set analysis equation &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but dont ask me why&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 15:36:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-the-4th-quarter-data/m-p/586326#M1100064</guid>
      <dc:creator />
      <dc:date>2014-04-16T15:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the 4th quarter data</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-the-4th-quarter-data/m-p/586327#M1100066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It likely has to do with the object you use it in.&amp;nbsp; Variable is independent of any object properties, so it works.&lt;/P&gt;&lt;P&gt;The important part that it works now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 16:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-the-4th-quarter-data/m-p/586327#M1100066</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-16T16:16:56Z</dc:date>
    </item>
  </channel>
</rss>

