<?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 the maximum value from a field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-the-maximum-value-from-a-field/m-p/821138#M289450</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks like a nice way to do a max. I am trying to understand what it is doing and how can this be implemented? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 16px; font-style: inherit; font-family: 'Courier New'; font-weight: inherit;"&gt;LOAD&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 16px; color: blue;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 16px; color: #2b2b2b;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 16px; color: blue;"&gt;FieldValue&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 16px; color: #2b2b2b;"&gt;(‘Id’, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 16px; color: blue;"&gt;recno&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 16px; color: #2b2b2b;"&gt;()))&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 16px; color: blue;"&gt;AUTOGENERATE&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 16px; color: blue;"&gt;FieldValueCount&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 16px; color: #2b2b2b;"&gt;(‘Id’); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you be able to post a sample file with the method that is prescribed in that article? (or may be use the example in this post to show how exactly can it be implemented for this particular scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Feb 2015 14:15:48 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-02-17T14:15:48Z</dc:date>
    <item>
      <title>Get the maximum value from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-maximum-value-from-a-field/m-p/821133#M289445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;from this table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALL:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;NUM_HOTEL, INVENTARIO,&lt;BR /&gt;1,768,&lt;BR /&gt;1,768,&lt;BR /&gt;2,0,&lt;BR /&gt;2,544&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to have another table with the highest value of INVENTARIO for each value of NUM_HOTEL so the resulting table I'm looking for in this case would have only two rows:&lt;/P&gt;&lt;P&gt;NUM_HOTEL,INVENTARIO&lt;/P&gt;&lt;P&gt;1,768&lt;/P&gt;&lt;P&gt;2,544&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do this in the easiest way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 13:01:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-maximum-value-from-a-field/m-p/821133#M289445</guid>
      <dc:creator />
      <dc:date>2015-02-17T13:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get the maximum value from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-maximum-value-from-a-field/m-p/821134#M289446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tablemax:&lt;/P&gt;&lt;P&gt;LOAD distinct NUM_HOTEL, max(INVENTARIO) as MaxINVENTARIO&lt;/P&gt;&lt;P&gt;resident ALL Group By NUM_HOTEL;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 13:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-maximum-value-from-a-field/m-p/821134#M289446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-17T13:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get the maximum value from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-maximum-value-from-a-field/m-p/821135#M289447</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;Create another table and there calculate the Maximum values for NUM_HOTEL for each value and then you get single table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALL:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;NUM_HOTEL, INVENTARIO&lt;/P&gt;&lt;P&gt;1,768,&lt;/P&gt;&lt;P&gt;1,768,&lt;/P&gt;&lt;P&gt;2,0,&lt;/P&gt;&lt;P&gt;2,544&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaxTable:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;NUM_HOTEL, &lt;/P&gt;&lt;P&gt;Max(INVENTARIO) as MaxINVENTARIO&lt;/P&gt;&lt;P&gt;Resident ALL &lt;/P&gt;&lt;P&gt;Group By NUM_HOTEL;&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;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 13:05:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-maximum-value-from-a-field/m-p/821135#M289447</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2015-02-17T13:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get the maximum value from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-maximum-value-from-a-field/m-p/821136#M289448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD &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; NUM_HOTEL,&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; max(INVENTARIO) as Max&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;resident ALL&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group By&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; NUM_HOTEL;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 13:07:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-maximum-value-from-a-field/m-p/821136#M289448</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-02-17T13:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get the maximum value from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-maximum-value-from-a-field/m-p/821137#M289449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a very interessting alternative available: &lt;A href="http://qlikviewcookbook.com/2013/09/fastest-method-to-read-maxfield-from-a-qvd/" title="http://qlikviewcookbook.com/2013/09/fastest-method-to-read-maxfield-from-a-qvd/"&gt;“Fastest” Method to Read max(field) From a QVD | Qlikview Cookbook&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 14:08:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-maximum-value-from-a-field/m-p/821137#M289449</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-02-17T14:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get the maximum value from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-maximum-value-from-a-field/m-p/821138#M289450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks like a nice way to do a max. I am trying to understand what it is doing and how can this be implemented? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-size: 16px; font-style: inherit; font-family: 'Courier New'; font-weight: inherit;"&gt;LOAD&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 16px; color: blue;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 16px; color: #2b2b2b;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 16px; color: blue;"&gt;FieldValue&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 16px; color: #2b2b2b;"&gt;(‘Id’, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 16px; color: blue;"&gt;recno&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 16px; color: #2b2b2b;"&gt;()))&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 16px; color: blue;"&gt;AUTOGENERATE&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 16px; color: blue;"&gt;FieldValueCount&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 16px; color: #2b2b2b;"&gt;(‘Id’); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you be able to post a sample file with the method that is prescribed in that article? (or may be use the example in this post to show how exactly can it be implemented for this particular scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 14:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-maximum-value-from-a-field/m-p/821138#M289450</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-17T14:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get the maximum value from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-maximum-value-from-a-field/m-p/821139#M289451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not more than that - it runs through the field (not through a table) and picked the max. value. This could you the pick with a peek-statement. But it worked only with single fields - if you want the max. value in combination with other fields it's not applicable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 14:29:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-maximum-value-from-a-field/m-p/821139#M289451</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-02-17T14:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get the maximum value from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-maximum-value-from-a-field/m-p/821140#M289452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But how exactly is it determining the max value within a field? and is it locating the max value by another field? For example if I have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Years&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ID&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the above script only going to pull the Max(id) = 6 or can it also give me Max per year (2015 = 3 &amp;amp; 2014 = 6) by manipulating it somehow?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 14:35:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-maximum-value-from-a-field/m-p/821140#M289452</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-17T14:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get the maximum value from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-maximum-value-from-a-field/m-p/821141#M289453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you will an approach like the correct answer in this posting - sorry, my reply was a mistake because I hadn't read carefully enough to see that the thread was about getting the max. values in combinations/conditions to other fields and not for a single field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 14:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-maximum-value-from-a-field/m-p/821141#M289453</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-02-17T14:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get the maximum value from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-maximum-value-from-a-field/m-p/821142#M289454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although a mistake, but you actually introduced me to something which I have not seen before. I would definitely want to spend some time on this and learn more about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 14:45:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-maximum-value-from-a-field/m-p/821142#M289454</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-17T14:45:07Z</dc:date>
    </item>
  </channel>
</rss>

