<?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 function not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-function-not-working/m-p/1156920#M377326</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you check your environmental variable... I think your date is interpreted as MM/DD/YYYY instead of DD/MM/YYYY.&lt;/P&gt;&lt;P&gt;Make sure you have this in your environmental variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET DateFormat='DD/MM/YYYY';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET DateFormat='D/M/YYYY';&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jul 2016 12:09:17 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-07-14T12:09:17Z</dc:date>
    <item>
      <title>Max function not working</title>
      <link>https://community.qlik.com/t5/QlikView/Max-function-not-working/m-p/1156917#M377323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi people,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I trying to fetch the max date from a qvd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script is something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Vendor:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Vendor, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mod_Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Price&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;C:\Users\madhura.nadgauda\Documents\Incremental_Load_Data.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;latest_date:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp; max(Mod_Date) as max_date&lt;/P&gt;&lt;P&gt;Resident Vendor;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With max_date I am trying to fetch the latest date from vendor table, but irrespective of whatever function I use, I always get the first date in the table i.e. 12/7/2016 instead of 17/7/2016 (max). Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 10:00:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-function-not-working/m-p/1156917#M377323</guid>
      <dc:creator />
      <dc:date>2016-07-14T10:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Max function not working</title>
      <link>https://community.qlik.com/t5/QlikView/Max-function-not-working/m-p/1156918#M377324</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;I think you have to sort the field "Mod_date" first and do the calucations ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 12:08:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-function-not-working/m-p/1156918#M377324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-14T12:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Max function not working</title>
      <link>https://community.qlik.com/t5/QlikView/Max-function-not-working/m-p/1156919#M377325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The load statement you posted loads data from an excel file, not a qvd. If max(Mod_Date) doesn't return the value you expect then that value does not exist in your data. At least not as a numeric value. Perhaps it's a text value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 12:08:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-function-not-working/m-p/1156919#M377325</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-07-14T12:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Max function not working</title>
      <link>https://community.qlik.com/t5/QlikView/Max-function-not-working/m-p/1156920#M377326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you check your environmental variable... I think your date is interpreted as MM/DD/YYYY instead of DD/MM/YYYY.&lt;/P&gt;&lt;P&gt;Make sure you have this in your environmental variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET DateFormat='DD/MM/YYYY';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET DateFormat='D/M/YYYY';&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 12:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-function-not-working/m-p/1156920#M377326</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-14T12:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Max function not working</title>
      <link>https://community.qlik.com/t5/QlikView/Max-function-not-working/m-p/1156921#M377327</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;Can you share your source file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 12:10:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-function-not-working/m-p/1156921#M377327</guid>
      <dc:creator>qlikview979</dc:creator>
      <dc:date>2016-07-14T12:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Max function not working</title>
      <link>https://community.qlik.com/t5/QlikView/Max-function-not-working/m-p/1156922#M377328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was correct! Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 12:57:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-function-not-working/m-p/1156922#M377328</guid>
      <dc:creator />
      <dc:date>2016-07-14T12:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Max function not working</title>
      <link>https://community.qlik.com/t5/QlikView/Max-function-not-working/m-p/1156923#M377329</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;I agree with Sunny and GD,&amp;nbsp; &lt;/P&gt;&lt;P&gt;Your problem will most likely down to the way your date is being interpreted. I would follow Sunny's instructions and also wrap you Mod_Date in a date function to i.e. DATE(Mod_Date) as Mod_Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 13:06:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-function-not-working/m-p/1156923#M377329</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2016-07-14T13:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Max function not working</title>
      <link>https://community.qlik.com/t5/QlikView/Max-function-not-working/m-p/1156924#M377330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code works if it is a date field, so you might want to force the value from the excel file to be a date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD Vendor,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;date(Mod_Date)&lt;/STRONG&gt;,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Price&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;C:\Users\madhura.nadgauda\Documents\Incremental_Load_Data.xlsx&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 13:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-function-not-working/m-p/1156924#M377330</guid>
      <dc:creator>squeakie_pig</dc:creator>
      <dc:date>2016-07-14T13:26:25Z</dc:date>
    </item>
  </channel>
</rss>

