<?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 per key in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/max-per-key-in-script/m-p/237524#M88579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A bit more info.&lt;/P&gt;&lt;P&gt;In my table i have reference-values.&lt;/P&gt;&lt;P&gt;So for example 10 years ago, this value was 50.&lt;/P&gt;&lt;P&gt;But then the standards changed an the reference values needed to change too.&lt;/P&gt;&lt;P&gt;So for example this changes to 80.&lt;/P&gt;&lt;P&gt;Now in my table i have all reference values, and i only want these that are now relevant for me (the most recent).&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/1884.forum.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/1884.forum.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'va added the value-field to my table.&lt;/P&gt;&lt;P&gt;If you check key 2645184, in 1993 the value for this key was 180, but in 1995 this changed to 41.&lt;/P&gt;&lt;P&gt;So i would like to load only the most recent data per key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 May 2011 13:19:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-02T13:19:05Z</dc:date>
    <item>
      <title>max per key in script</title>
      <link>https://community.qlik.com/t5/QlikView/max-per-key-in-script/m-p/237521#M88576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the following table:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-4209_sourceID:4209" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fiels "SLEUTEL" is my key field.&lt;/P&gt;&lt;P&gt;As you can see, some key-fields van have multiple start-dates (DATUM_VAN_WAARDE). (the red square on the image)&lt;/P&gt;&lt;P&gt;I'm looking for a way to load only the most recent start-date per key-field.&lt;/P&gt;&lt;P&gt;So I could express it like DATUM_VAN_WAARDE = aggr((max(DATUM_VAN_WAARDE),SLEUTEL).&lt;/P&gt;&lt;P&gt;Off course my records have a lot of others fields that i'm not showing in this image &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Anyone knows how I can do this in my script?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 12:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-per-key-in-script/m-p/237521#M88576</guid>
      <dc:creator />
      <dc:date>2011-05-02T12:44:13Z</dc:date>
    </item>
    <item>
      <title>AW:max per key in script</title>
      <link>https://community.qlik.com/t5/QlikView/max-per-key-in-script/m-p/237522#M88577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can use Max() and Group By in script:&lt;/P&gt;&lt;P&gt;Load SLEUTEL,&lt;BR /&gt; Max(DATUM_VAN_WAARDE) As MaxDatum&lt;BR /&gt;From Table Group By SLEUTEL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 12:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-per-key-in-script/m-p/237522#M88577</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-05-02T12:55:16Z</dc:date>
    </item>
    <item>
      <title>SV:max per key in script</title>
      <link>https://community.qlik.com/t5/QlikView/max-per-key-in-script/m-p/237523#M88578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please clarify in more detail what you are trying to achieve. Are you looking for a way to load the max values only in the load script? Or are you looking for a way to get only the max values presented in a table in your QV app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 12:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-per-key-in-script/m-p/237523#M88578</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-05-02T12:57:07Z</dc:date>
    </item>
    <item>
      <title>max per key in script</title>
      <link>https://community.qlik.com/t5/QlikView/max-per-key-in-script/m-p/237524#M88579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A bit more info.&lt;/P&gt;&lt;P&gt;In my table i have reference-values.&lt;/P&gt;&lt;P&gt;So for example 10 years ago, this value was 50.&lt;/P&gt;&lt;P&gt;But then the standards changed an the reference values needed to change too.&lt;/P&gt;&lt;P&gt;So for example this changes to 80.&lt;/P&gt;&lt;P&gt;Now in my table i have all reference values, and i only want these that are now relevant for me (the most recent).&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/1884.forum.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/1884.forum.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'va added the value-field to my table.&lt;/P&gt;&lt;P&gt;If you check key 2645184, in 1993 the value for this key was 180, but in 1995 this changed to 41.&lt;/P&gt;&lt;P&gt;So i would like to load only the most recent data per key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 13:19:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-per-key-in-script/m-p/237524#M88579</guid>
      <dc:creator />
      <dc:date>2011-05-02T13:19:05Z</dc:date>
    </item>
    <item>
      <title>max per key in script</title>
      <link>https://community.qlik.com/t5/QlikView/max-per-key-in-script/m-p/237525#M88580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is Martina's answer not working for you? :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;you can use Max() and Group By in script:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load SLEUTEL,&lt;BR /&gt; Max(DATUM_VAN_WAARDE) As MaxDatum&lt;BR /&gt;From Table Group By SLEUTEL;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 13:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-per-key-in-script/m-p/237525#M88580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-02T13:27:43Z</dc:date>
    </item>
    <item>
      <title>AW:Re: max per key in script</title>
      <link>https://community.qlik.com/t5/QlikView/max-per-key-in-script/m-p/237526#M88581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;use this script and you get always only the latest WAARDE!&lt;/P&gt;&lt;P&gt;Load SLEUTEL,&lt;BR /&gt; Only(WAARDE) As ActualWAARDE,&lt;BR /&gt; Max(DATUM_VAN_WAARDE) As MaxDatum&lt;BR /&gt;From Table Group By SLEUTEL;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 13:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-per-key-in-script/m-p/237526#M88581</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-05-02T13:27:43Z</dc:date>
    </item>
  </channel>
</rss>

