<?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 record holds the highest number in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-record-holds-the-highest-number/m-p/1180210#M382631</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting both the records&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Sep 2016 20:09:08 GMT</pubDate>
    <dc:creator>renjithpl</dc:creator>
    <dc:date>2016-09-10T20:09:08Z</dc:date>
    <item>
      <title>Get record holds the highest number</title>
      <link>https://community.qlik.com/t5/QlikView/Get-record-holds-the-highest-number/m-p/1180208#M382629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table like this &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 236px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;ID&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;RandomNumber&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;Country&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;1&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;152&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Australia&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;1&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;162&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Canada&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While loading i want &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 236px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;ID&lt;/TD&gt;&lt;TD class="xl63" width="108"&gt;RandomNumber&lt;/TD&gt;&lt;TD class="xl63" width="64"&gt;Country&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;162&lt;/TD&gt;&lt;TD&gt;Canada&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;to get only one record for an ID with highest RandomNumber. My output should look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Any ideas.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2016 19:35:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-record-holds-the-highest-number/m-p/1180208#M382629</guid>
      <dc:creator>renjithpl</dc:creator>
      <dc:date>2016-09-10T19:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get record holds the highest number</title>
      <link>https://community.qlik.com/t5/QlikView/Get-record-holds-the-highest-number/m-p/1180209#M382630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(RandomNumber) as RandomNumber,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(Country, -RandomNumber)&lt;/P&gt;&lt;P&gt;FROM ...&lt;/P&gt;&lt;P&gt;GROUP BY ID;&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;Table:&lt;/P&gt;&lt;P&gt;LOAD ID, RandomNumber, Country&lt;/P&gt;&lt;P&gt;FROM ....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INNER JOIN&lt;/P&gt;&lt;P&gt;LOAD ID, Max(RandomNumber) as RandomNumber&lt;/P&gt;&lt;P&gt;RESIDENT Table&lt;/P&gt;&lt;P&gt;GROUP BY ID;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2016 19:55:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-record-holds-the-highest-number/m-p/1180209#M382630</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-10T19:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get record holds the highest number</title>
      <link>https://community.qlik.com/t5/QlikView/Get-record-holds-the-highest-number/m-p/1180210#M382631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting both the records&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2016 20:09:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-record-holds-the-highest-number/m-p/1180210#M382631</guid>
      <dc:creator>renjithpl</dc:creator>
      <dc:date>2016-09-10T20:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get record holds the highest number</title>
      <link>https://community.qlik.com/t5/QlikView/Get-record-holds-the-highest-number/m-p/1180211#M382632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The second one is working, let me verify. THanks much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2016 20:10:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-record-holds-the-highest-number/m-p/1180211#M382632</guid>
      <dc:creator>renjithpl</dc:creator>
      <dc:date>2016-09-10T20:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Get record holds the highest number</title>
      <link>https://community.qlik.com/t5/QlikView/Get-record-holds-the-highest-number/m-p/1180212#M382633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;SQL select&lt;/P&gt;&lt;P&gt;ID ,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RandomNumber, Country &lt;/SPAN&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;from table where &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RandomNumber=(select max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RandomNumber&lt;/SPAN&gt;) from table) ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try the above&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2016 20:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-record-holds-the-highest-number/m-p/1180212#M382633</guid>
      <dc:creator />
      <dc:date>2016-09-10T20:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get record holds the highest number</title>
      <link>https://community.qlik.com/t5/QlikView/Get-record-holds-the-highest-number/m-p/1180213#M382634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Working samples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14735384721024521" jivemacro_uid="_14735384721024521"&gt;
&lt;P&gt;Table:&lt;/P&gt;
&lt;P&gt;LOAD ID, Max(RandomNumber) as RandomNumber, FirstSortedValue(Country, -RandomNumber) as Country&lt;/P&gt;
&lt;P&gt; INLINE [&lt;/P&gt;
&lt;P&gt;ID, RandomNumber, Country&lt;/P&gt;
&lt;P&gt;1, 152, Australia&lt;/P&gt;
&lt;P&gt;1, 162, Canada&lt;/P&gt;
&lt;P&gt;]&lt;/P&gt;
&lt;P&gt;GROUP BY ID;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14735384796501647 jive_text_macro" jivemacro_uid="_14735384796501647"&gt;
&lt;P&gt;Table&lt;EM&gt;:&lt;/EM&gt;&lt;BR /&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;ID, RandomNumber, Country&lt;/P&gt;
&lt;P&gt;1, 152, Australia&lt;/P&gt;
&lt;P&gt;1, 162, Canada&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;INNER JOIN&lt;/P&gt;
&lt;P&gt;LOAD ID, Max(RandomNumber) as RandomNumber&lt;/P&gt;
&lt;P&gt;Resident Table&lt;/P&gt;
&lt;P&gt;GROUP BY ID;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2016 20:14:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-record-holds-the-highest-number/m-p/1180213#M382634</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-10T20:14:40Z</dc:date>
    </item>
  </channel>
</rss>

