<?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 Calculation for Sequential Growth in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculation-for-Sequential-Growth/m-p/1722179#M54947</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I will be happy if you can share your thoughts and ideas on the below issue that I am experiencing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a visualization where I am calculating Sequential Growth, which as you most probably know is the current quarter - the previous quarter / previous quarter. This is the formula that I use:&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;NumericQuarter={'$(=max(NumericQuarter))'}&amp;gt;} Units)&lt;BR /&gt;- sum({&amp;lt;NumericQuarter={'$(=max(NumericQuarter)-7)'}&amp;gt;} Units))&lt;BR /&gt;/ sum({&amp;lt;NumericQuarter={'$(=max(NumericQuarter)-7)'}&amp;gt;} Units)&lt;/P&gt;&lt;P&gt;In other words:&lt;/P&gt;&lt;P&gt;20201 - 20194 / 20194&lt;/P&gt;&lt;P&gt;Quarter field is in the following format - 2019Q4&lt;/P&gt;&lt;P&gt;NumericQuarter field is in the following format - 20194&lt;/P&gt;&lt;P&gt;Right now, this calculation is working as the latest quarter that I have available is 2020Q1. So basically the result from the above formula is: 20201 - 7 = 20194&lt;/P&gt;&lt;P&gt;The problem happens when I reload new data. Lets say that on the next reload of the data the latest that I will have is going to be 2020Q2 and this case the formula will not work because it will need to be max quarter - 1, instead of - 7.&lt;/P&gt;&lt;P&gt;I will need to manually edit the formula to be:&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;NumericQuarter={'$(=max(NumericQuarter))'}&amp;gt;} Units)&lt;BR /&gt;- sum({&amp;lt;NumericQuarter={'$(=max(NumericQuarter)-1)'}&amp;gt;} Units))&lt;BR /&gt;/ sum({&amp;lt;NumericQuarter={'$(=max(NumericQuarter)-1)'}&amp;gt;} Units)&lt;/P&gt;&lt;P&gt;In order to get 20202 - 20201 / 20201&lt;/P&gt;&lt;P&gt;Do you have any ideas how I can do the above without having to edit my formula every time the data changes? I know I can achieve that with offsets but I am pretty new into the offset part of qliksense, so I would be happy to get some assistance...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if something is unclear and thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:26:34 GMT</pubDate>
    <dc:creator>ShellyG</dc:creator>
    <dc:date>2024-11-16T18:26:34Z</dc:date>
    <item>
      <title>Calculation for Sequential Growth</title>
      <link>https://community.qlik.com/t5/App-Development/Calculation-for-Sequential-Growth/m-p/1722179#M54947</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I will be happy if you can share your thoughts and ideas on the below issue that I am experiencing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a visualization where I am calculating Sequential Growth, which as you most probably know is the current quarter - the previous quarter / previous quarter. This is the formula that I use:&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;NumericQuarter={'$(=max(NumericQuarter))'}&amp;gt;} Units)&lt;BR /&gt;- sum({&amp;lt;NumericQuarter={'$(=max(NumericQuarter)-7)'}&amp;gt;} Units))&lt;BR /&gt;/ sum({&amp;lt;NumericQuarter={'$(=max(NumericQuarter)-7)'}&amp;gt;} Units)&lt;/P&gt;&lt;P&gt;In other words:&lt;/P&gt;&lt;P&gt;20201 - 20194 / 20194&lt;/P&gt;&lt;P&gt;Quarter field is in the following format - 2019Q4&lt;/P&gt;&lt;P&gt;NumericQuarter field is in the following format - 20194&lt;/P&gt;&lt;P&gt;Right now, this calculation is working as the latest quarter that I have available is 2020Q1. So basically the result from the above formula is: 20201 - 7 = 20194&lt;/P&gt;&lt;P&gt;The problem happens when I reload new data. Lets say that on the next reload of the data the latest that I will have is going to be 2020Q2 and this case the formula will not work because it will need to be max quarter - 1, instead of - 7.&lt;/P&gt;&lt;P&gt;I will need to manually edit the formula to be:&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;NumericQuarter={'$(=max(NumericQuarter))'}&amp;gt;} Units)&lt;BR /&gt;- sum({&amp;lt;NumericQuarter={'$(=max(NumericQuarter)-1)'}&amp;gt;} Units))&lt;BR /&gt;/ sum({&amp;lt;NumericQuarter={'$(=max(NumericQuarter)-1)'}&amp;gt;} Units)&lt;/P&gt;&lt;P&gt;In order to get 20202 - 20201 / 20201&lt;/P&gt;&lt;P&gt;Do you have any ideas how I can do the above without having to edit my formula every time the data changes? I know I can achieve that with offsets but I am pretty new into the offset part of qliksense, so I would be happy to get some assistance...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if something is unclear and thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:26:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculation-for-Sequential-Growth/m-p/1722179#M54947</guid>
      <dc:creator>ShellyG</dc:creator>
      <dc:date>2024-11-16T18:26:34Z</dc:date>
    </item>
  </channel>
</rss>

