<?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: Show latest four Quaters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-latest-four-Quaters/m-p/893841#M1014679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anbu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its taking all the Quarters for year 2012,2013,2014,2015. Its not limiting to top 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Apr 2015 12:40:43 GMT</pubDate>
    <dc:creator>jyothish8807</dc:creator>
    <dc:date>2015-04-23T12:40:43Z</dc:date>
    <item>
      <title>Show latest four Quaters</title>
      <link>https://community.qlik.com/t5/QlikView/Show-latest-four-Quaters/m-p/893833#M1014671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a Quarter filed in my script using this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 'T' &amp;amp; ceil(Month(Date#(Month,'MM.YYYY')) / 4)&amp;amp;' '&amp;amp; Year(Date#(Month,'MM.YYYY'))&amp;nbsp; AS Quarter1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to show Latest Four Quarter in a pivot chart and when ever i updated dates it should automatically takes the latest four Quarters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:20:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-latest-four-Quaters/m-p/893833#M1014671</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2015-04-23T11:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Show latest four Quaters</title>
      <link>https://community.qlik.com/t5/QlikView/Show-latest-four-Quaters/m-p/893834#M1014672</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 note that Quarter is of 3 months so you need to divide by 3 instead of 4&lt;/P&gt;&lt;P&gt;=ceil(Month(Date)/3) as Quarter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and whereever displaying this quarter just mention the condition in expression as Year=max(Year)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:26:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-latest-four-Quaters/m-p/893834#M1014672</guid>
      <dc:creator>ankitaag</dc:creator>
      <dc:date>2015-04-23T11:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Show latest four Quaters</title>
      <link>https://community.qlik.com/t5/QlikView/Show-latest-four-Quaters/m-p/893835#M1014673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Add another field in the script:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;If(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date#(Month,'MM.YYYY')&amp;gt;= QuarterStart(today(),-3), 1, 0) as&amp;nbsp; InLast4Quarters&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then change your expressions to use that field to filter the data. For example sum(Value) becomes sum({&amp;lt;InLast4Quarters={1}&amp;gt;}Value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:30:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-latest-four-Quaters/m-p/893835#M1014673</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-23T11:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Show latest four Quaters</title>
      <link>https://community.qlik.com/t5/QlikView/Show-latest-four-Quaters/m-p/893836#M1014674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was the requirement to keep Quarter as /4, because of that i am not able to use Quarterstart and Quarterend functions also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-latest-four-Quaters/m-p/893836#M1014674</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2015-04-23T11:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Show latest four Quaters</title>
      <link>https://community.qlik.com/t5/QlikView/Show-latest-four-Quaters/m-p/893837#M1014675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried this but its giving and syntex error:&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;If(Date#(Month,'MM.YYYY')&amp;gt; addyears(Max(Date#(Month,'MM.YYYY')),-1), 1, 0) as&amp;nbsp; InLast4Quarters&lt;/P&gt;&lt;P&gt;Resident Temp1;&lt;/P&gt;&lt;P&gt;Drop table tablename;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:42:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-latest-four-Quaters/m-p/893837#M1014675</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2015-04-23T11:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Show latest four Quaters</title>
      <link>https://community.qlik.com/t5/QlikView/Show-latest-four-Quaters/m-p/893838#M1014676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm pretty sure I didn't specify use of the max function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-latest-four-Quaters/m-p/893838#M1014676</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-23T11:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Show latest four Quaters</title>
      <link>https://community.qlik.com/t5/QlikView/Show-latest-four-Quaters/m-p/893839#M1014677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for that Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant take Today() since i&amp;nbsp; am working on historic data may be 2 months old. that why i tried using Max function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-latest-four-Quaters/m-p/893839#M1014677</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2015-04-23T11:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Show latest four Quaters</title>
      <link>https://community.qlik.com/t5/QlikView/Show-latest-four-Quaters/m-p/893840#M1014678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Replace Today() with MaxDate in variable vPrevYr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 12:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-latest-four-Quaters/m-p/893840#M1014678</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-04-23T12:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Show latest four Quaters</title>
      <link>https://community.qlik.com/t5/QlikView/Show-latest-four-Quaters/m-p/893841#M1014679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anbu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its taking all the Quarters for year 2012,2013,2014,2015. Its not limiting to top 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 12:40:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-latest-four-Quaters/m-p/893841#M1014679</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2015-04-23T12:40:43Z</dc:date>
    </item>
  </channel>
</rss>

