<?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 Retrieving the last 8 closed Quarters YYYY'Q'QQ in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Retrieving-the-last-8-closed-Quarters-YYYY-Q-QQ/m-p/115493#M17788</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Hello experts,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I need help to retrieve the last 8 closed quarters, in order to compare them with each other. And this needs to be done using set analysis.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;My data format in the [Quarter] field is for example: 2018Q02&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I should have the 2 last closed quarters as variables in order to perform sum and calculations between them, for example:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Quarter for today() = 2018Q04. So, as long as we need the closed quarters:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$LastQuarter = [Quarter]-1 = 2018Q02&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;$2LastQuarter = [Quarter]-2 = 2018Q01&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Once i understand the mechanic behind it, i can try and solve the other closed quarters that i want.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I've been trying to do this, but nothing is working at this moment.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2018 08:28:22 GMT</pubDate>
    <dc:creator>50ShadesOfSalty</dc:creator>
    <dc:date>2018-10-18T08:28:22Z</dc:date>
    <item>
      <title>Retrieving the last 8 closed Quarters YYYY'Q'QQ</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieving-the-last-8-closed-Quarters-YYYY-Q-QQ/m-p/115493#M17788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Hello experts,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I need help to retrieve the last 8 closed quarters, in order to compare them with each other. And this needs to be done using set analysis.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;My data format in the [Quarter] field is for example: 2018Q02&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I should have the 2 last closed quarters as variables in order to perform sum and calculations between them, for example:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Quarter for today() = 2018Q04. So, as long as we need the closed quarters:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$LastQuarter = [Quarter]-1 = 2018Q02&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;$2LastQuarter = [Quarter]-2 = 2018Q01&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Once i understand the mechanic behind it, i can try and solve the other closed quarters that i want.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I've been trying to do this, but nothing is working at this moment.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 08:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieving-the-last-8-closed-Quarters-YYYY-Q-QQ/m-p/115493#M17788</guid>
      <dc:creator>50ShadesOfSalty</dc:creator>
      <dc:date>2018-10-18T08:28:22Z</dc:date>
    </item>
  </channel>
</rss>

