<?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: FirstSortedValue() in set Analysis Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-set-Analysis-Issue/m-p/786868#M278372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please provide sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Feb 2015 10:03:18 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2015-02-25T10:03:18Z</dc:date>
    <item>
      <title>FirstSortedValue() in set Analysis Issue</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-set-Analysis-Issue/m-p/786867#M278371</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 have a table with City Dimension and want to know the top Vendor according to TRADE_VALUE and&amp;nbsp; distinct loaction_ID count of that Vendor ,&lt;/P&gt;&lt;P&gt;i am able to find the top vendor with help of firstSortedvalue().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i want pass this function into set analysis and get the city wise distinct LOCATION_ID COUNT.&lt;/P&gt;&lt;P&gt;Below is the expression what i have written, but not getting the right result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count( {&amp;lt;VENDORSHORTNAME={"$(=FirstSortedValue(VENDORSHORTNAME,-Aggr(Sum(TRADE_VALUE),VENDORSHORTNAME,CITY)))"}&amp;gt;}DISTINCT LOCATIONID) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you see the image closely the second record showing '0' but there are loaction_Id associated with that,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ci.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/79057_ci.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 09:39:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-set-Analysis-Issue/m-p/786867#M278371</guid>
      <dc:creator />
      <dc:date>2015-02-25T09:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue() in set Analysis Issue</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-set-Analysis-Issue/m-p/786868#M278372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please provide sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 10:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-set-Analysis-Issue/m-p/786868#M278372</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-02-25T10:03:18Z</dc:date>
    </item>
  </channel>
</rss>

