<?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: Firstsorted value and its count in the same table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Firstsorted-value-and-its-count-in-the-same-table/m-p/1247442#M850267</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;&lt;STRONG&gt;Max(Aggr(Count(ID), Country, city_name)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Mar 2017 08:30:16 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-03-21T08:30:16Z</dc:date>
    <item>
      <title>Firstsorted value and its count in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsorted-value-and-its-count-in-the-same-table/m-p/1247441#M850266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone please help me. As i am trying to get the firstsorted value for each dimensions and use the firstsorted value to count no of IDs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&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;Country&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Top City&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Customers at Top City&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Total Customers&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Australia&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Sydney&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1200&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;America&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;New York&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1400&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3000&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;I got Top City using First sorted value =&lt;/P&gt;&lt;P&gt;For example: FirstSortedValue(city_name, (-(Aggr(count(ID), Country, city_name))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i want to calculate the Customers at that City by using above expression, as i cant use If condition as we have many countries.&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;Karthik&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/Firstsorted-value-and-its-count-in-the-same-table/m-p/1247441#M850266</guid>
      <dc:creator>karthikdaibala</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsorted value and its count in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsorted-value-and-its-count-in-the-same-table/m-p/1247442#M850267</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;&lt;STRONG&gt;Max(Aggr(Count(ID), Country, city_name)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 08:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsorted-value-and-its-count-in-the-same-table/m-p/1247442#M850267</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-21T08:30:16Z</dc:date>
    </item>
  </channel>
</rss>

