<?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: Get Max Period for Year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Solved/m-p/1053373#M923356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For your sample:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [Fiscal Year],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Max(Date#(Month_Year_Calendar, 'MMM-YY')), 'MMM-YY') as Month_Year_Calendar,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(Quantity, -Date#(Month_Year_Calendar, 'MMM-YY')) as Quantity&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;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="213623" data-objecttype="1" href="https://community.qlik.com/thread/213623"&gt;https://community.qlik.com/thread/213623&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, codepage is 1252, embedded labels, table is @1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By [Fiscal Year];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121933_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Apr 2016 18:14:37 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-04-18T18:14:37Z</dc:date>
    <item>
      <title>Solved</title>
      <link>https://community.qlik.com/t5/QlikView/Solved/m-p/1053370#M923353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Solved/m-p/1053370#M923353</guid>
      <dc:creator>microwin88x</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get Max Period for Year</title>
      <link>https://community.qlik.com/t5/QlikView/Solved/m-p/1053371#M923354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [Fiscal Year],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Month_Year_Calendar&lt;/STRONG&gt;&lt;/SPAN&gt;) as &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Month_Year_Calendar,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Quantity&lt;/STRONG&gt;&lt;/SPAN&gt;, -&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Month_Year_Calendar&lt;/STRONG&gt;&lt;/SPAN&gt;) as &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Quantity&lt;/STRONG&gt;&lt;/SPAN&gt;&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;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2003" data-containertype="14" data-objectid="213623" data-objecttype="1" href="https://community.qlik.com/thread/213623"&gt;https://community.qlik.com/thread/213623&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, codepage is 1252, embedded labels, table is @1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By [Fiscal Year];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 18:10:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Solved/m-p/1053371#M923354</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-18T18:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get Max Period for Year</title>
      <link>https://community.qlik.com/t5/QlikView/Solved/m-p/1053372#M923355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your Month_Year_Calendar field is a calendar field with numeric representation (and assuming a chart solution);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chart with dimension Fiscal Year and two expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date(Max(&lt;SPAN style="font-size: 13.3333px;"&gt;Month_Year_Calendar),'MMM-YY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=FirstSortedValue(Quantitiy, -&lt;SPAN style="font-size: 13.3333px;"&gt;Month_Year_Calendar)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Note that there is a discrepancy between your Fiscal year values and the year in &lt;SPAN style="font-size: 13.3333px;"&gt;Month_Year_Calendar?&lt;/SPAN&gt;]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 18:13:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Solved/m-p/1053372#M923355</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-18T18:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get Max Period for Year</title>
      <link>https://community.qlik.com/t5/QlikView/Solved/m-p/1053373#M923356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For your sample:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [Fiscal Year],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Max(Date#(Month_Year_Calendar, 'MMM-YY')), 'MMM-YY') as Month_Year_Calendar,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(Quantity, -Date#(Month_Year_Calendar, 'MMM-YY')) as Quantity&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;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="213623" data-objecttype="1" href="https://community.qlik.com/thread/213623"&gt;https://community.qlik.com/thread/213623&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, codepage is 1252, embedded labels, table is @1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By [Fiscal Year];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121933_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 18:14:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Solved/m-p/1053373#M923356</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-18T18:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get Max Period for Year</title>
      <link>https://community.qlik.com/t5/QlikView/Solved/m-p/1053374#M923357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe tune this a bit into:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MaxTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD [Fiscal Year],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(Month_Year_Calendar) AS MaxCalendarMonth,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(Quantity, -&lt;SPAN style="font-size: 13.3333px;"&gt;Month_Year_Calendar) AS MaxCalendarMonthQuantity&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'courier new', courier;"&gt;RESIDENT YourInputTable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'courier new', courier;"&gt;GROUP BY [Fiscal Year];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 18:16:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Solved/m-p/1053374#M923357</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-04-18T18:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get Max Period for Year</title>
      <link>https://community.qlik.com/t5/QlikView/Solved/m-p/1053375#M923358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fiscal Year is most often the year of the last calendar period in the fiscal year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fiscal years can vary in length (now its 18 periods, after it's just 10 etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fiscal years don't have to align with calendar years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or what discrepancy do you mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 18:18:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Solved/m-p/1053375#M923358</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-04-18T18:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get Max Period for Year</title>
      <link>https://community.qlik.com/t5/QlikView/Solved/m-p/1053376#M923359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, needs to get my eyes checked, I've misread some values in the second column (or need a bigger screen).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 18:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Solved/m-p/1053376#M923359</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-18T18:23:25Z</dc:date>
    </item>
  </channel>
</rss>

