<?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 Max Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-Date/m-p/922790#M319579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 12pt;"&gt;Need a little help.&amp;nbsp; I have converted the format of my service date from MM/DD/YYYY to YYYY-MM-DD in my script using the following: Date(Service_Date,'YYYY-MM-DD') as Serv_Date .&amp;nbsp; Then use the following expression: Date(Max(Serv_Date)) it returns MM/DD/YYYY format even though I am using the one I converted in the script by using the following : &lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 12pt;"&gt;YYY-YMM-DD.&amp;nbsp; Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jul 2015 19:31:37 GMT</pubDate>
    <dc:creator>tmumaw</dc:creator>
    <dc:date>2015-07-30T19:31:37Z</dc:date>
    <item>
      <title>Max Date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Date/m-p/922790#M319579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 12pt;"&gt;Need a little help.&amp;nbsp; I have converted the format of my service date from MM/DD/YYYY to YYYY-MM-DD in my script using the following: Date(Service_Date,'YYYY-MM-DD') as Serv_Date .&amp;nbsp; Then use the following expression: Date(Max(Serv_Date)) it returns MM/DD/YYYY format even though I am using the one I converted in the script by using the following : &lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 12pt;"&gt;YYY-YMM-DD.&amp;nbsp; Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 19:31:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Date/m-p/922790#M319579</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2015-07-30T19:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Max Date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Date/m-p/922791#M319580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never mind.&amp;nbsp; I went to the numeric tab and changed the format there, but it makes no sense why it would not take the format I gave it in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 19:35:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Date/m-p/922791#M319580</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2015-07-30T19:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Max Date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Date/m-p/922792#M319581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you use the max function it converts the date into Numeric format over which you have applied date function. So Date function will convert it into the default format which is define in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So change the set variable of Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET DateFormat='&lt;SPAN style="color: #575757; font-size: 12pt;"&gt;YYY-YMM-DD';&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 19:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Date/m-p/922792#M319581</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-07-30T19:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Max Date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Date/m-p/922793#M319582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is a default format at the start of every script&lt;/P&gt;&lt;P&gt;SET DateFormat='.............';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the date function &lt;/P&gt;&lt;P&gt;date(somefield) will use that format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to change the &lt;STRONG&gt;default format&lt;/STRONG&gt;, change the &lt;/P&gt;&lt;P&gt;&lt;EM&gt;SET DateFormat =&lt;SPAN style="font-size: 13.3333330154419px;"&gt;'YYYY-MM-DD';&lt;/SPAN&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;if you only want to change the format in some part of the script use the second parameter in date function&lt;/P&gt;&lt;P&gt;&lt;EM&gt;date(somefield, 'YYYY-MM-DD')&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 23:30:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Date/m-p/922793#M319582</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-07-30T23:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Max Date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Date/m-p/922794#M319583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have set the Default date format in script to &lt;/P&gt;&lt;P&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;"&gt;SET DateFormat='&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;YYY-MMM-DD';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;then only it works.&amp;nbsp; By default if you use any date functions it returns in the above set date format.&amp;nbsp; If you want other than this you have to specify the Date format using Date().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 01:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Date/m-p/922794#M319583</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-07-31T01:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Max Date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Date/m-p/922795#M319584</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;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SET DateFormat =&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;'YYYY-MM-DD';&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 01:14:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Date/m-p/922795#M319584</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-31T01:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Max Date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Date/m-p/922796#M319585</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 use below script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET DateFormat='M/DD/YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='M/DD/YYYY h:mm:ss[.fff] TT';&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD date(Serv_Date) as Serv_Date Inline [&lt;/P&gt;&lt;P&gt;Serv_Date&lt;/P&gt;&lt;P&gt;6/25/2010&lt;/P&gt;&lt;P&gt;1/29/2011&lt;/P&gt;&lt;P&gt;12/21/2013&lt;/P&gt;&lt;P&gt;12/21/2014&lt;/P&gt;&lt;P&gt;06/21/2015&lt;/P&gt;&lt;P&gt;06/21/2013&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;left Join (Table)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;max(date(Serv_Date)) as Max_Date&lt;/P&gt;&lt;P&gt;Resident Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT Script;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94615_Capture.JPG" style="height: 218px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 02:16:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Date/m-p/922796#M319585</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-07-31T02:16:42Z</dc:date>
    </item>
  </channel>
</rss>

