<?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: How to load row´s with highest/lowest fieldvalue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-load-row-s-with-highest-lowest-fieldvalue/m-p/751592#M267983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data1:&lt;/P&gt;&lt;P&gt;Load * From Source.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;Load FAL, Max([REQ UTC TSTAMP]) as MaxTime Resident Data1 Group By FAL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data2:&lt;/P&gt;&lt;P&gt;Load * Resident Data1 Where [REQ UTC TSTAMP] = MaxTime;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Data1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Dec 2014 14:37:29 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2014-12-01T14:37:29Z</dc:date>
    <item>
      <title>How to load row´s with highest/lowest fieldvalue</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-row-s-with-highest-lowest-fieldvalue/m-p/751590#M267981</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 would like to load only these rows out of a .qvd-file where the field "REQ UTC TSTAMP" has the highest value group&amp;nbsp; by "FAL".&lt;/P&gt;&lt;P&gt;(In the original .qvd-file there are 450 more Fields!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/72435_pastedImage_0.png" style="width: 620px; height: 47px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for a simple solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 14:26:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-row-s-with-highest-lowest-fieldvalue/m-p/751590#M267981</guid>
      <dc:creator>joweis4711</dc:creator>
      <dc:date>2014-12-01T14:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to load row´s with highest/lowest fieldvalue</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-row-s-with-highest-lowest-fieldvalue/m-p/751591#M267982</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;In the load script create the another table like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;FAL,&lt;/P&gt;&lt;P&gt;Max("REQ UTC TSTAMP") as [Max REQ UTC TSTAMP]&lt;/P&gt;&lt;P&gt;Resident SourceTable&lt;/P&gt;&lt;P&gt;Group FAL;&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>Mon, 01 Dec 2014 14:37:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-row-s-with-highest-lowest-fieldvalue/m-p/751591#M267982</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-12-01T14:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to load row´s with highest/lowest fieldvalue</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-row-s-with-highest-lowest-fieldvalue/m-p/751592#M267983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data1:&lt;/P&gt;&lt;P&gt;Load * From Source.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;Load FAL, Max([REQ UTC TSTAMP]) as MaxTime Resident Data1 Group By FAL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data2:&lt;/P&gt;&lt;P&gt;Load * Resident Data1 Where [REQ UTC TSTAMP] = MaxTime;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Data1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 14:37:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-row-s-with-highest-lowest-fieldvalue/m-p/751592#M267983</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-12-01T14:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to load row´s with highest/lowest fieldvalue</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-row-s-with-highest-lowest-fieldvalue/m-p/751593#M267984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;Decide on a primary key for every record (primary key is unique for every record)&lt;/LI&gt;&lt;LI&gt;Use a GROUP BY LOAD to get the Max records. Load the corresponding field values by using firstsortedvalmue() function. Load only the minimal set of fields, e.g. if your prilmary key is composed of 5 fields, you want to load FAL, [REQ UTS TSTAMP] and all individual fields that make up your primary key&lt;/LI&gt;&lt;LI&gt;LEFT JOIN the other fields to this initial Max table.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to load the QVD in memory first, as a JOIN is resource hungry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, imagine that I have a primary key composed of three fields: FIELD1, FIELD2 and FIELD3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RawData:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * FROM InputFile.QVD (qvd);&amp;nbsp; // Very fast load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MaxTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOCONCATENATE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD FAL,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max([REQ UTS TSTAMP]) AS [MAX REQ UTS TSTAMP],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(FIELD1, -[REQ UTS TSTAMP]) AS FIELD1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(FIELD2, -[REQ UTS TSTAMP]) AS FIELD2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(FIELD3, -[REQ UTS TSTAMP]) AS FIELD3,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT RawData&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;GROUP BY FAL;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LEFT JOIN (MaxTable)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * RESIDENT RawData;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DROP Table RawData;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We used * in all places where you run the risk of having to specify hundreds of additional field names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 14:47:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-row-s-with-highest-lowest-fieldvalue/m-p/751593#M267984</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-12-01T14:47:56Z</dc:date>
    </item>
  </channel>
</rss>

