<?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: Calculation based on previous number in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-based-on-previous-number/m-p/95773#M15404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;great&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Sep 2018 13:52:27 GMT</pubDate>
    <dc:creator>manoranjan_d</dc:creator>
    <dc:date>2018-09-06T13:52:27Z</dc:date>
    <item>
      <title>Calculation based on previous number</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-based-on-previous-number/m-p/95769#M15400</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;Kindly find below table and required otuput. This needs to be achieved in frontend. Please assist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 456px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" width="50"&gt;Channel&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="86"&gt;Value %&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="197"&gt;Calculation !&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="123"&gt;Required Output&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;" width="50"&gt;A&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="86"&gt;-15&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="197"&gt;If(Negative then 0)&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="123"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="32" style="border-top: none;" width="50"&gt;B&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="86"&gt;5&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="197"&gt;-15+5 = -10 (Again negative then 0)&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="123"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;" width="50"&gt;C&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="86"&gt;13&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="197"&gt;-10 + 13 = 3&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="123"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;" width="50"&gt;D&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="86"&gt;32&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="197"&gt; &lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="123"&gt;32&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;" width="50"&gt;E&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="86"&gt;65&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;" width="197"&gt; &lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;" width="123"&gt;65&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: none;" width="50"&gt;Total&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;" width="86"&gt;100&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;" width="197"&gt; &lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;" width="123"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sumeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 12:06:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-based-on-previous-number/m-p/95769#M15400</guid>
      <dc:creator>sumeet-vaidya</dc:creator>
      <dc:date>2018-09-05T12:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation based on previous number</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-based-on-previous-number/m-p/95770#M15401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;Channel, Value&lt;/P&gt;&lt;P&gt;A, -15&lt;/P&gt;&lt;P&gt;B, 5&lt;/P&gt;&lt;P&gt;C, 13&lt;/P&gt;&lt;P&gt;D, 32&lt;/P&gt;&lt;P&gt;E, 65&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmp1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Channel,&lt;/P&gt;&lt;P&gt;Value,&lt;/P&gt;&lt;P&gt;if(RowNo() = 1, Value,&lt;/P&gt;&lt;P&gt;Peek(x) + Value)&amp;nbsp; as x&lt;/P&gt;&lt;P&gt;Resident tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmp2:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;if(y &amp;lt; 0, 0, y) as z;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;if(Peek(x) &amp;gt; 0, Value, x) as y&lt;/P&gt;&lt;P&gt;Resident tmp1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table tmp1;&lt;/P&gt;&lt;P&gt;DROP Fields x,y;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reguards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 13:08:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-based-on-previous-number/m-p/95770#M15401</guid>
      <dc:creator>giovanneb</dc:creator>
      <dc:date>2018-09-05T13:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation based on previous number</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-based-on-previous-number/m-p/95771#M15402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create one straight table and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add the dimension as channel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression 1 as sum(value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression 2 as =if(RangeSum(Above(Value,0,2))&amp;lt;0,'0',RangeSum(Above(Value,0,2)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 14:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-based-on-previous-number/m-p/95771#M15402</guid>
      <dc:creator>manoranjan_d</dc:creator>
      <dc:date>2018-09-05T14:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation based on previous number</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-based-on-previous-number/m-p/95772#M15403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Alt(Above(RangeSum(Above(Sum(Value), 0, RowNo()))), -1) &amp;lt; 0, RangeMax(RangeSum(Above(Sum(Value), 0, RowNo())), 0), Sum(Value))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/212846_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 13:03:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-based-on-previous-number/m-p/95772#M15403</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-09-06T13:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation based on previous number</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-based-on-previous-number/m-p/95773#M15404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;great&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 13:52:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-based-on-previous-number/m-p/95773#M15404</guid>
      <dc:creator>manoranjan_d</dc:creator>
      <dc:date>2018-09-06T13:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation based on previous number</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-based-on-previous-number/m-p/95774#M15405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great Sunny..!!! Thanks a ton&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sumeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 07:09:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-based-on-previous-number/m-p/95774#M15405</guid>
      <dc:creator>sumeet-vaidya</dc:creator>
      <dc:date>2018-09-20T07:09:20Z</dc:date>
    </item>
  </channel>
</rss>

