<?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: Last quarter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-quarter/m-p/927315#M648879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I would try it with an additionally numeric year-field (here are two versions) and set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;// left(Year,4) * 10 + right(Year,1) as YearNum, // will be more complicated because it's not linear&lt;/P&gt;&lt;P&gt;if(rowno() = 1, 1, if(Year = peek('Year'), peek('YearNUM'), peek('YearNUM') + 1)) as YearNum,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and as expression something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; YearNum = {"&lt;STRONG&gt;&amp;gt;=&lt;/STRONG&gt;$(=max(YearNum)&lt;STRONG&gt; - 1&lt;/STRONG&gt;)&lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;$(=max(YearNum)&lt;STRONG&gt; + 2&lt;/STRONG&gt;)"}&amp;gt;} Information)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bolded parts might be adjusted to your needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Oct 2015 12:56:38 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-10-20T12:56:38Z</dc:date>
    <item>
      <title>Last quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Last-quarter/m-p/927314#M648878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to make appear the last &lt;STRONG&gt;quarter&lt;/STRONG&gt; from my selection:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QuarterAndCumul:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Year, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; information1, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; information2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; information3,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; information4,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Date(MakeDate(Left(Year,4),(Right(Year,1)-1)*3+1,1)) as Quarter&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QnC.qvd&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid #000000; width: 132px; height: 56px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Year&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2000_Q1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2000_Q2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2001_Q3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2001_Q4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I desire when I select "2000_Q2" a table show 2000_Q1's informations and 2001_Q4 with the same table 2001_Q3's information&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 09:32:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-quarter/m-p/927314#M648878</guid>
      <dc:creator />
      <dc:date>2015-10-20T09:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Last quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Last-quarter/m-p/927315#M648879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I would try it with an additionally numeric year-field (here are two versions) and set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;// left(Year,4) * 10 + right(Year,1) as YearNum, // will be more complicated because it's not linear&lt;/P&gt;&lt;P&gt;if(rowno() = 1, 1, if(Year = peek('Year'), peek('YearNUM'), peek('YearNUM') + 1)) as YearNum,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and as expression something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; YearNum = {"&lt;STRONG&gt;&amp;gt;=&lt;/STRONG&gt;$(=max(YearNum)&lt;STRONG&gt; - 1&lt;/STRONG&gt;)&lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;$(=max(YearNum)&lt;STRONG&gt; + 2&lt;/STRONG&gt;)"}&amp;gt;} Information)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bolded parts might be adjusted to your needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 12:56:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-quarter/m-p/927315#M648879</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-10-20T12:56:38Z</dc:date>
    </item>
  </channel>
</rss>

