<?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 value that has the max count - via script Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-the-value-that-has-the-max-count-via-script-Load/m-p/1453711#M794824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;t:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;Value,&lt;/P&gt;&lt;P&gt;count(Name) as Qty&lt;/P&gt;&lt;P&gt;Resident TestTable&lt;/P&gt;&lt;P&gt;Group by Value;&lt;/P&gt;&lt;P&gt;t2:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;FirstSortedValue(Value,-Qty) as MaxValue&lt;/P&gt;&lt;P&gt;Resident t;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jan 2018 10:33:06 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2018-01-11T10:33:06Z</dc:date>
    <item>
      <title>Get the value that has the max count - via script Load</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-value-that-has-the-max-count-via-script-Load/m-p/1453710#M794823</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've attached an app sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with two columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want, VIA SCRIPT LOAD, to get the "Value" that has the max count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value 5 - count = 3&lt;/P&gt;&lt;P&gt;Value 7 - count = 2&lt;/P&gt;&lt;P&gt;Value 9 - count = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get the Value 5, which is the value with the max count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want to get it in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sílvia Ganhão&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-value-that-has-the-max-count-via-script-Load/m-p/1453710#M794823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get the value that has the max count - via script Load</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-value-that-has-the-max-count-via-script-Load/m-p/1453711#M794824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;t:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;Value,&lt;/P&gt;&lt;P&gt;count(Name) as Qty&lt;/P&gt;&lt;P&gt;Resident TestTable&lt;/P&gt;&lt;P&gt;Group by Value;&lt;/P&gt;&lt;P&gt;t2:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;FirstSortedValue(Value,-Qty) as MaxValue&lt;/P&gt;&lt;P&gt;Resident t;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 10:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-value-that-has-the-max-count-via-script-Load/m-p/1453711#M794824</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2018-01-11T10:33:06Z</dc:date>
    </item>
  </channel>
</rss>

