<?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: Max (Month Year) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-Month-Year/m-p/1554564#M440563</link>
    <description>&lt;P&gt;Others have pointed out that you will need the date() formatting function because max() returns a number.&amp;nbsp; I'd also suggest that you can get rid of the complex string parsing by reading the timestamp string with the TimeStamp#() function.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;let DateTimeStamp=TimeStamp#(Peek('DateTimeStamp', 0, 'LastLine'),'YYYYMMDDhhmmss');&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Then you have a proper Qlik timestamp and can use functions like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;let MonthYear&amp;nbsp;&lt;/SPAN&gt;MonthStart(DateTimeStamp);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
    <pubDate>Sun, 10 Mar 2019 00:07:12 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2019-03-10T00:07:12Z</dc:date>
    <item>
      <title>Max (Month Year)</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-Year/m-p/1554525#M440549</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have a field in a&amp;nbsp; file&amp;nbsp;&lt;SPAN&gt;20190220080003 where i change the format of it from timestamp to&amp;nbsp;MMM-YY in script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When i want to display the months, it will show string 42826 instead of the format i want.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;0~20190220080003~98853&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;let DateTimeStamp=Peek('DateTimeStamp', 0, 'LastLine');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;let MonthYear=Date(Date#('01/'&amp;amp;mid($(DateTimeStamp),5,2)&amp;amp;'/'&amp;amp;Left($(DateTimeStamp),4)),'MMM-YY');&lt;/P&gt;&lt;P&gt;=[Month Year] = Apr 17&lt;/P&gt;&lt;P&gt;=max([Month Year]) = 42826&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot.PNG" style="width: 200px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7644i3E2A6A3121A1E5A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="screenshot.PNG" alt="screenshot.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:13:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-Year/m-p/1554525#M440549</guid>
      <dc:creator>DestinedTale</dc:creator>
      <dc:date>2024-11-16T04:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Max (Month Year)</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-Year/m-p/1554526#M440550</link>
      <description>&lt;P&gt;Try this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(max([Month Year]),'MMM YY')&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2019 08:25:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-Year/m-p/1554526#M440550</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-03-09T08:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Max (Month Year)</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-Year/m-p/1554538#M440557</link>
      <description>&lt;P&gt;these is number format for your date.&lt;/P&gt;&lt;P&gt;you can use date(max(timestamp),'MMM-YY')&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2019 12:08:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-Year/m-p/1554538#M440557</guid>
      <dc:creator>passionate</dc:creator>
      <dc:date>2019-03-09T12:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Max (Month Year)</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Month-Year/m-p/1554564#M440563</link>
      <description>&lt;P&gt;Others have pointed out that you will need the date() formatting function because max() returns a number.&amp;nbsp; I'd also suggest that you can get rid of the complex string parsing by reading the timestamp string with the TimeStamp#() function.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;let DateTimeStamp=TimeStamp#(Peek('DateTimeStamp', 0, 'LastLine'),'YYYYMMDDhhmmss');&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Then you have a proper Qlik timestamp and can use functions like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;let MonthYear&amp;nbsp;&lt;/SPAN&gt;MonthStart(DateTimeStamp);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 00:07:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Month-Year/m-p/1554564#M440563</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-03-10T00:07:12Z</dc:date>
    </item>
  </channel>
</rss>

