<?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: Using previous cell of calculated field to generate the new value in same field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-previous-cell-of-calculated-field-to-generate-the-new/m-p/1699299#M53544</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Try this;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if( amort_monthyear_name='Dec 2019',Sum(Pos)/10000000,RangeSum(&lt;STRONG&gt;before&lt;/STRONG&gt;(column(3)))-column(1))&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 May 2020 07:08:12 GMT</pubDate>
    <dc:creator>IamAlbinAntony</dc:creator>
    <dc:date>2020-05-06T07:08:12Z</dc:date>
    <item>
      <title>Using previous cell of calculated field to generate the new value in same field</title>
      <link>https://community.qlik.com/t5/App-Development/Using-previous-cell-of-calculated-field-to-generate-the-new/m-p/1699259#M53537</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qliksense_User_0-1588740510580.png" style="width: 706px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/33000i9654AE28908F9E8D/image-dimensions/706x142?v=v2" width="706" height="142" role="button" title="Qliksense_User_0-1588740510580.png" alt="Qliksense_User_0-1588740510580.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am developing a report as above where my pos is getting calculated in the chart. Basically&amp;nbsp; my POS for FEB is POS for Jan-Principal for Feb and for DEC 2019 it is default value of POS/1e7. So i have used&amp;nbsp;if( amort_monthyear_name='Dec 2019',column(1) , before(column(1))-column(2)). As you can see in the screenshot it is working fine for Jan i.e. 3133.44-68.81=3064.63 whereas for FEB it is doing 3429.33-138.78=3290.55 as i have used before(column(1))&amp;nbsp; and my requirement is it should do derived POS value of Jan 3064.63- 138.78=2925.85 same for March would be 2925.85-136.27=2789.58&lt;/P&gt;&lt;P&gt;I have also tried to get previous month POS using set analysis by&amp;nbsp;Sum({&amp;lt;amort_monthyear_name={"$(vPreviousMonth)"}&amp;gt;}Pos)/10000000 where&amp;nbsp;vPreviousMonth is my variable for previous month.&lt;/P&gt;&lt;P&gt;The Problem here is when is use this set in KPI I get the exact value however when is use this in pivot table i get 0 values.&lt;/P&gt;&lt;P&gt;Thanks in advance for the help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-previous-cell-of-calculated-field-to-generate-the-new/m-p/1699259#M53537</guid>
      <dc:creator>Qliksense_User</dc:creator>
      <dc:date>2021-12-20T21:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using previous cell of calculated field to generate the new value in same field</title>
      <link>https://community.qlik.com/t5/App-Development/Using-previous-cell-of-calculated-field-to-generate-the-new/m-p/1699273#M53539</link>
      <description>&lt;P&gt;In front end use&amp;nbsp;&lt;SPAN&gt;RangeSum() function for doing accumulation.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 06:25:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-previous-cell-of-calculated-field-to-generate-the-new/m-p/1699273#M53539</guid>
      <dc:creator>IamAlbinAntony</dc:creator>
      <dc:date>2020-05-06T06:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using previous cell of calculated field to generate the new value in same field</title>
      <link>https://community.qlik.com/t5/App-Development/Using-previous-cell-of-calculated-field-to-generate-the-new/m-p/1699288#M53542</link>
      <description>&lt;P&gt;Thanks FruzoCrew i already tried&lt;/P&gt;&lt;P&gt;if( amort_monthyear_name='Dec 2019',Sum(Pos)/10000000,RangeSum(Above(column(3)))-column(1)) and was able to achieve the desired figures in a straight table however, the same expression is not working in a pivot table, I believe maybe RangeSum() would not work in pivot table.&lt;/P&gt;&lt;P&gt;Thanks once again FruzoCrew&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 06:49:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-previous-cell-of-calculated-field-to-generate-the-new/m-p/1699288#M53542</guid>
      <dc:creator>Qliksense_User</dc:creator>
      <dc:date>2020-05-06T06:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using previous cell of calculated field to generate the new value in same field</title>
      <link>https://community.qlik.com/t5/App-Development/Using-previous-cell-of-calculated-field-to-generate-the-new/m-p/1699299#M53544</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Try this;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if( amort_monthyear_name='Dec 2019',Sum(Pos)/10000000,RangeSum(&lt;STRONG&gt;before&lt;/STRONG&gt;(column(3)))-column(1))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 07:08:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-previous-cell-of-calculated-field-to-generate-the-new/m-p/1699299#M53544</guid>
      <dc:creator>IamAlbinAntony</dc:creator>
      <dc:date>2020-05-06T07:08:12Z</dc:date>
    </item>
  </channel>
</rss>

