<?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 Value of preceding quarter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Value-of-preceding-quarter/m-p/1081927#M360463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlik Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a rather tricky requirement, and I am Stuck at the moment &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have a table with values for each month. I want to have the end value of the preceding quarter for eacht month.&lt;/P&gt;&lt;P&gt;Meaning for July, August and September 2015, I want to have the value for June 2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="prec quarter.png" class="jive-image image-1" src="/legacyfs/online/111472_prec quarter.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the above Function, but no luck...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Does Anyone have a clue? Can this be solved by an expression, or maybe it is necessry to implement this in a script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would really appriciate some suggestions &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a better understanding, I attached a sample file. In real life, I also need data for the prepreceding and the preprepreciding Quarter, but i guess once you have figured it out for 1 quarter, you can adapt the solution. Hopefully &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers from Germany!&lt;/P&gt;&lt;P&gt;Fabian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jan 2016 11:24:28 GMT</pubDate>
    <dc:creator>fheidenstecker</dc:creator>
    <dc:date>2016-01-13T11:24:28Z</dc:date>
    <item>
      <title>Value of preceding quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Value-of-preceding-quarter/m-p/1081927#M360463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlik Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a rather tricky requirement, and I am Stuck at the moment &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have a table with values for each month. I want to have the end value of the preceding quarter for eacht month.&lt;/P&gt;&lt;P&gt;Meaning for July, August and September 2015, I want to have the value for June 2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="prec quarter.png" class="jive-image image-1" src="/legacyfs/online/111472_prec quarter.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the above Function, but no luck...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Does Anyone have a clue? Can this be solved by an expression, or maybe it is necessry to implement this in a script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would really appriciate some suggestions &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a better understanding, I attached a sample file. In real life, I also need data for the prepreceding and the preprepreciding Quarter, but i guess once you have figured it out for 1 quarter, you can adapt the solution. Hopefully &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers from Germany!&lt;/P&gt;&lt;P&gt;Fabian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 11:24:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-of-preceding-quarter/m-p/1081927#M360463</guid>
      <dc:creator>fheidenstecker</dc:creator>
      <dc:date>2016-01-13T11:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Value of preceding quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Value-of-preceding-quarter/m-p/1081928#M360464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/FHeidenstecker"&gt;FHeidenstecker&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At a quick glance this can be resolved at back-end in the scripting. Load the table and use Peek() and Prev() to derive the value for "End Value Of Last Quarter". I can send you an example qvw once I get back to my desk. Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-S.K.Rab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 11:47:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-of-preceding-quarter/m-p/1081928#M360464</guid>
      <dc:creator>blade001</dc:creator>
      <dc:date>2016-01-13T11:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Value of preceding quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Value-of-preceding-quarter/m-p/1081929#M360465</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;the above() needs a bit "intelligence". In your (simple) case would this work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Above(Sum(Value),pick(match(mod(rowno(), 3), 0,1,2), 3,1,2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values from last quarter 2013 are missing in this case - here could be a wrapping with an aggr-function work - see this as hint: &lt;A href="https://community.qlik.com/message/864459"&gt;Re: RangeSum with Aggr&lt;/A&gt;. Alternativ to the above solution (which only worked if there are no period-selections) could be applied a month-offset within the master-calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 12:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-of-preceding-quarter/m-p/1081929#M360465</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-01-13T12:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Value of preceding quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Value-of-preceding-quarter/m-p/1081930#M360466</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;Please see the attached. This demonstrates how you can do this in scripting using the methods I have mentioned earlier and also the fix from Marcus (posted above) if you want to do this in the chart expression. You will face some difficulties with selections if you use the expression. however using the script solution would not give you that problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the following to derive the &lt;SPAN style="font-size: 13.3333px;"&gt;End_Value_of_Last_Quarter. you can derive this column during your load stage.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Quarter &amp;lt;&amp;gt; Previous(Quarter),Previous(Value),Peek(End_Value_of_Last_Quarter)) AS End_Value_of_Last_Quarter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-S.K.Rab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 13:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-of-preceding-quarter/m-p/1081930#M360466</guid>
      <dc:creator>blade001</dc:creator>
      <dc:date>2016-01-13T13:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Value of preceding quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Value-of-preceding-quarter/m-p/1081931#M360467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A href="https://community.qlik.com/qlik-users/27943"&gt;Marcus_Sommer&lt;/A&gt;‌ for your help!&lt;/P&gt;&lt;P&gt;I guess I'll never understand this above voodoo &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Managed to match my requirement by using some Aggr and Set Analysis!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Fabian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jan 2016 17:51:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-of-preceding-quarter/m-p/1081931#M360467</guid>
      <dc:creator>fheidenstecker</dc:creator>
      <dc:date>2016-01-31T17:51:00Z</dc:date>
    </item>
  </channel>
</rss>

