<?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: first sorted value and aggr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/first-sorted-value-and-aggr/m-p/1361255#M822488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any Sample data or app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Aug 2017 11:36:50 GMT</pubDate>
    <dc:creator>balar025</dc:creator>
    <dc:date>2017-08-07T11:36:50Z</dc:date>
    <item>
      <title>first sorted value and aggr</title>
      <link>https://community.qlik.com/t5/QlikView/first-sorted-value-and-aggr/m-p/1361253#M822486</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 cant seem to work out why the below wont work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=FirstSortedValue(aggr(sum({$&amp;lt; Area -= {''}&amp;gt;}[Total Emissions]),Area),Area)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically the aggr creates a virtual table of total emissions grouped by area (this works ive tested it separately). i then want to sort that table such that i return the area with the highest total NOx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help is much apprecoated/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &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/first-sorted-value-and-aggr/m-p/1361253#M822486</guid>
      <dc:creator>samuel_brierley</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: first sorted value and aggr</title>
      <link>https://community.qlik.com/t5/QlikView/first-sorted-value-and-aggr/m-p/1361254#M822487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please share sample application? this will help us to provide expected inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul Pawar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 11:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/first-sorted-value-and-aggr/m-p/1361254#M822487</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-08-07T11:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: first sorted value and aggr</title>
      <link>https://community.qlik.com/t5/QlikView/first-sorted-value-and-aggr/m-p/1361255#M822488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any Sample data or app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 11:36:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/first-sorted-value-and-aggr/m-p/1361255#M822488</guid>
      <dc:creator>balar025</dc:creator>
      <dc:date>2017-08-07T11:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: first sorted value and aggr</title>
      <link>https://community.qlik.com/t5/QlikView/first-sorted-value-and-aggr/m-p/1361256#M822489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;maybe this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(DISTINCT Area,-Aggr(Sum([Total Emissions]),Area))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;STRONG&gt; &lt;/STRONG&gt;provide sample data.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 11:46:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/first-sorted-value-and-aggr/m-p/1361256#M822489</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-08-07T11:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: first sorted value and aggr</title>
      <link>https://community.qlik.com/t5/QlikView/first-sorted-value-and-aggr/m-p/1361257#M822490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you missed first parameter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 11:47:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/first-sorted-value-and-aggr/m-p/1361257#M822490</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-07T11:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: first sorted value and aggr</title>
      <link>https://community.qlik.com/t5/QlikView/first-sorted-value-and-aggr/m-p/1361258#M822491</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;=FirstSortedValue({$&amp;lt;Area -= {''}&amp;gt;} Area, -Aggr(Only({$&amp;lt;Area -= {''}&amp;gt;} Area), Area))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 11:56:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/first-sorted-value-and-aggr/m-p/1361258#M822491</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-07T11:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: first sorted value and aggr</title>
      <link>https://community.qlik.com/t5/QlikView/first-sorted-value-and-aggr/m-p/1361259#M822492</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;thanks for the suggestions but they dont seem to be working quite yet.&lt;/P&gt;&lt;P&gt;i've attached a sample for your reference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 12:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/first-sorted-value-and-aggr/m-p/1361259#M822492</guid>
      <dc:creator>samuel_brierley</dc:creator>
      <dc:date>2017-08-07T12:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: first sorted value and aggr</title>
      <link>https://community.qlik.com/t5/QlikView/first-sorted-value-and-aggr/m-p/1361260#M822493</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;=FirstSortedValue({$&amp;lt; Area -= {''}&amp;gt;} Area,-Aggr(Sum({$&amp;lt; Area -= {''}&amp;gt;}[Total Emissions]),Area))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/172638_Capture.PNG" style="height: 276px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 12:23:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/first-sorted-value-and-aggr/m-p/1361260#M822493</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-07T12:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: first sorted value and aggr</title>
      <link>https://community.qlik.com/t5/QlikView/first-sorted-value-and-aggr/m-p/1361261#M822494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;excellent thank you!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 12:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/first-sorted-value-and-aggr/m-p/1361261#M822494</guid>
      <dc:creator>samuel_brierley</dc:creator>
      <dc:date>2017-08-07T12:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: first sorted value and aggr</title>
      <link>https://community.qlik.com/t5/QlikView/first-sorted-value-and-aggr/m-p/1361262#M822495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swap the aggr and area dimensions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;FirstSortedValue(&lt;SPAN style="font-size: 28.6924px;"&gt;Distinct Area,-aggr(sum({$&amp;lt; Area -= {''}&amp;gt;}[Total Emissions]),Area))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 12:27:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/first-sorted-value-and-aggr/m-p/1361262#M822495</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2017-08-07T12:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: first sorted value and aggr</title>
      <link>https://community.qlik.com/t5/QlikView/first-sorted-value-and-aggr/m-p/1549678#M822496</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;I happened to check this thread and seemed to have seen something different here the Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(&lt;FONT face="arial black,avant garde"&gt;&lt;U&gt;&lt;EM&gt;{$&amp;lt; Area -= {''}&amp;gt;} Area&lt;/EM&gt;&lt;/U&gt;&lt;/FONT&gt;,-Aggr(Sum({$&amp;lt; Area -= {''}&amp;gt;}[Total Emissions]),Area))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Very first Parameter into FirstSortedValue Function which is usually a Dimension is defined by a Set Analysis Expression but not encapsulated with any aggr function , so could you please spare some time and explain the situation here.&lt;/P&gt;&lt;P&gt;I have changed the font of the Parameter in the expression to emphasize what exactly is my question&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 09:06:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/first-sorted-value-and-aggr/m-p/1549678#M822496</guid>
      <dc:creator>anushree1</dc:creator>
      <dc:date>2019-02-27T09:06:22Z</dc:date>
    </item>
  </channel>
</rss>

