<?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: Current vs Previous Quarter - Capture Delta (+/-) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590393#M443524</link>
    <description>&lt;P&gt;So, you did create a field like called&amp;nbsp;&lt;SPAN&gt;display_year, right? How exactly did you create it? I mean what was the syntax you used in the script to create it?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2019 10:25:44 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-06-11T10:25:44Z</dc:date>
    <item>
      <title>Current vs Previous Quarter - Capture Delta (+/-)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1589934#M443478</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I have a requirement to show delta / net movement of values between Current Quarter ( Or&amp;nbsp; any Selected Quarter ) with its previous quarter.&lt;/P&gt;&lt;P&gt;There is a possibility - we can't have quarters in sequence. Mostly we don't have Q4 datasets. So, if we need to compare between Q1'2019 then its previous quarter is Q3'2018. So, its purely based on user selection to select a current quarter.&lt;/P&gt;&lt;P&gt;I have values like 2017' Q4, 2018' Q1,&amp;nbsp;&lt;SPAN&gt;2018' Q2,&amp;nbsp;2018' Q3,&amp;nbsp;2019' Q1 &amp;amp;&amp;nbsp;2019' Q2. As I receive the value from a dataset as is, there is no date field / calendar to derive quarters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can I have any ideas how to proceed with this implementation? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1589934#M443478</guid>
      <dc:creator>ckmchinmaya</dc:creator>
      <dc:date>2024-11-16T20:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Quarter - Capture Delta (+/-)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1589944#M443479</link>
      <description>&lt;P&gt;You can check this out&amp;nbsp;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Missing-Manual-Above-and-Below/ta-p/1481948" target="_blank" rel="noopener"&gt;Missing Manual Above and Below&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 11:05:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1589944#M443479</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-10T11:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Quarter - Capture Delta (+/-)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1589995#M443480</link>
      <description>&lt;P&gt;Thanks Sunny for the link.&lt;/P&gt;&lt;P&gt;As I am looking to implement within script ( Quarter to Quarter delta to be shown in a text box object ), I have created a another column "display_year" which will convert 2018,Q1 to 20181 and similarly for other values.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;year_quarter &amp;nbsp; display_year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2019, Q1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 20191&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2018, Q3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20183&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2018, Q2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20182&lt;/P&gt;&lt;P&gt;I have write below expression to get&lt;/P&gt;&lt;P&gt;=MaxString({1&amp;lt;display_year={'&amp;lt;$(=max(display_year))'}&amp;gt;} year_quarter)&lt;/P&gt;&lt;P&gt;This works perfect in text box object, but I am not able to write / make it work in a variable with in script.&lt;/P&gt;&lt;P&gt;Can you something you can help with ?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 12:29:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1589995#M443480</guid>
      <dc:creator>ckmchinmaya</dc:creator>
      <dc:date>2019-06-10T12:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Quarter - Capture Delta (+/-)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1589999#M443481</link>
      <description>&lt;P&gt;You mentioned before that this needs to change based on user selection and yet you want to do this in the script? Also, you are using set analysis, whereas I suggested Above() and Below().... Did you try Above() and Below().&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 12:32:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1589999#M443481</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-10T12:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Quarter - Capture Delta (+/-)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590029#M443485</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Let me explain my scenario in more detailed way, We have 100+ KPIs which are calculated with in the script and displayed in presentation layer within text boxes - they are majorly part of executive summaries based on organization mandate. The Quarter selection is controlled in the presentation layer.&lt;/P&gt;&lt;P&gt;Now the requirement is to show a delta (net change) from last available quarter for each of the KPIs. So, I have to 1st recognise which one is the last quarter, then I can calculate its value to compute delta. Unless I do the whole calculation within the script - it will be a big unmanageable change in the presentation layer.&lt;/P&gt;&lt;P&gt;I am stuck at first point - to get last quarter while user select a current quarter.&lt;/P&gt;&lt;P&gt;The expression works as expected but, I am not able to use that with in script.&lt;/P&gt;&lt;P&gt;If you still think above/below will work - I can give a try.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 13:35:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590029#M443485</guid>
      <dc:creator>ckmchinmaya</dc:creator>
      <dc:date>2019-06-10T13:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Quarter - Capture Delta (+/-)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590050#M443489</link>
      <description>&lt;P&gt;So, you don't want this to be done in a chart? You want this to be a KPI object? May be create a autonumber field like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Calendar:
LOAD Date,
  ..., 
  Year_Quarter,
  AutoNumber(Year_Quarter) as YearQtrNum,
  ....
Resident ....
Order By Date;&lt;/LI-CODE&gt;&lt;P&gt;and then you can use an expression like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum({&amp;lt;YearQtrNum = {"$(=Max(YearQtrNum) - 1)"}&amp;gt;} Measure)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 10 Jun 2019 13:51:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590050#M443489</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-10T13:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Quarter - Capture Delta (+/-)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590059#M443490</link>
      <description>&lt;P&gt;Can I use the expression it with in the backend script ?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 14:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590059#M443490</guid>
      <dc:creator>ckmchinmaya</dc:creator>
      <dc:date>2019-06-10T14:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Quarter - Capture Delta (+/-)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590071#M443492</link>
      <description>&lt;P&gt;No, it is front end expression... I am not really sure what you are after... would you be able to provide info on the input data and the output you are hoping to see after you are done reloading the app?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 14:24:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590071#M443492</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-10T14:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Quarter - Capture Delta (+/-)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590080#M443493</link>
      <description>&lt;P&gt;Please find the attached screen, currently the KPI values are showing from 1 quarter ( based on user selection ). All these text box are written with variables. Now the ask is to show delta figure from previous available quarter with in bracket for all 4 organization. This is just 1 page out of 10. I want to do something with script ( help of variable ) and call the variable in presentation layer, so that it will easy if some more modification come in the later phase. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 14:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590080#M443493</guid>
      <dc:creator>ckmchinmaya</dc:creator>
      <dc:date>2019-06-10T14:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Quarter - Capture Delta (+/-)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590122#M443496</link>
      <description>&lt;P&gt;So, all of these numbers are current quarter numbers? nothing is the prior quarter?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 16:01:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590122#M443496</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-10T16:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Quarter - Capture Delta (+/-)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590241#M443506</link>
      <description>You can either create new column which has the previous quarter value for each quarter and use that to show the data or have a expression like the below&lt;BR /&gt;&lt;BR /&gt;sum({&amp;lt;Quater={$(=max({&amp;lt;Quater={"&amp;lt;$(=only(Quater))"}&amp;gt;} Quater))}&amp;gt;} Amount)</description>
      <pubDate>Tue, 11 Jun 2019 03:59:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590241#M443506</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2019-06-11T03:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Quarter - Capture Delta (+/-)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590351#M443519</link>
      <description>&lt;P&gt;Yes Sunny. All numbers are from current quarter ( based on user selection ).&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 09:04:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590351#M443519</guid>
      <dc:creator>ckmchinmaya</dc:creator>
      <dc:date>2019-06-11T09:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Quarter - Capture Delta (+/-)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590393#M443524</link>
      <description>&lt;P&gt;So, you did create a field like called&amp;nbsp;&lt;SPAN&gt;display_year, right? How exactly did you create it? I mean what was the syntax you used in the script to create it?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 10:25:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590393#M443524</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-11T10:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Quarter - Capture Delta (+/-)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590444#M443529</link>
      <description>&lt;P&gt;Its simply a replace function removes Q and Comma from the year_quarter i.e. 2018, Q1. Post removal of Comma and Q it became a number 20181.&lt;/P&gt;&lt;P&gt;I have used the display year to calculate previous quarter, with the expression I shared earlier. Then I have put that quarter as a set expression to calculate KPIs, then compute Delta.&lt;/P&gt;&lt;P&gt;Though I have managed to get this done via multiple variables in the backend script and able to generate the required outcome. However, performance became a concern. At some point of time&amp;nbsp; I have to change the way to get the previous quarter KPI values from a resident table only.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 12:12:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590444#M443529</guid>
      <dc:creator>ckmchinmaya</dc:creator>
      <dc:date>2019-06-11T12:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Quarter - Capture Delta (+/-)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590517#M443532</link>
      <description>&lt;P&gt;The reason I say it might be easier to use&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;AutoNumber(Year_Quarter) as YearQtrNum,&lt;/PRE&gt;&lt;P&gt;compared to what you have is that it will be easy to go back one quarter when it is sequential number vs 201704, 201801....&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 14:12:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590517#M443532</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-11T14:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Quarter - Capture Delta (+/-)</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590523#M443533</link>
      <description>&lt;P&gt;Yes Sunny, the method you have suggested it will work for all type of scenarios. I found a lucky escape by simply replace few characters, but your suggested method will be the best.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 14:21:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Quarter-Capture-Delta/m-p/1590523#M443533</guid>
      <dc:creator>ckmchinmaya</dc:creator>
      <dc:date>2019-06-11T14:21:54Z</dc:date>
    </item>
  </channel>
</rss>

