<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/First-sorted-value/m-p/47862#M776928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because FirstSortedValue and Sum are both Aggregation function and when they have to be used together need Aggr() function between them.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2018 11:09:16 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-04-17T11:09:16Z</dc:date>
    <item>
      <title>First sorted value</title>
      <link>https://community.qlik.com/t5/QlikView/First-sorted-value/m-p/47861#M776927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea why this will not work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=firstsortedvalue(Sum({&amp;lt;[Sub Contractor Type] = {'Drop Rate'}&amp;gt;}[Sub Contractor Rate]), Aggr(Sum({&amp;lt;[Sub Contractor Type] = {'Base Rate'}&amp;gt;}[Sub Contractor Rate]),[Sub Contractor]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is driving me mad! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;J&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/m-p/47861#M776927</guid>
      <dc:creator>jamelmessaoud</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: First sorted value</title>
      <link>https://community.qlik.com/t5/QlikView/First-sorted-value/m-p/47862#M776928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because FirstSortedValue and Sum are both Aggregation function and when they have to be used together need Aggr() function between them.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 11:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-sorted-value/m-p/47862#M776928</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-17T11:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: First sorted value</title>
      <link>https://community.qlik.com/t5/QlikView/First-sorted-value/m-p/47863#M776929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What exactly are you trying to do here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 11:09:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-sorted-value/m-p/47863#M776929</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-17T11:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: First sorted value</title>
      <link>https://community.qlik.com/t5/QlikView/First-sorted-value/m-p/47864#M776930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see.&amp;nbsp; Me being a bit dim then!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will do a bit more messing around to try and find a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks as always Sunny &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 11:14:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-sorted-value/m-p/47864#M776930</guid>
      <dc:creator>jamelmessaoud</dc:creator>
      <dc:date>2018-04-17T11:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: First sorted value</title>
      <link>https://community.qlik.com/t5/QlikView/First-sorted-value/m-p/47865#M776931</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;The use of firstsortedValue() with aggr would be like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FirstSortedValue(Dimension, -Aggr(Expression, Dimension, ChartDimension)&lt;/P&gt;&lt;P&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;firstsortedvalue(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Sub Contractor]&lt;/SPAN&gt;, -Aggr(Sum({&amp;lt;[Sub Contractor Type] = {'Base Rate'}&amp;gt;}[Sub Contractor Rate]),[Sub Contractor]))&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;&lt;BR /&gt;&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;(The - sign is for descending, so that you get the top/best ones first)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 11:32:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-sorted-value/m-p/47865#M776931</guid>
      <dc:creator>itec_pao</dc:creator>
      <dc:date>2018-04-17T11:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: First sorted value</title>
      <link>https://community.qlik.com/t5/QlikView/First-sorted-value/m-p/47866#M776932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oktay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to show the lowest Drop Rate instead of the Sub Contractor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The drop rate is a calculation which is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Sub Contractor Type] = {'DropRate'}&amp;gt;}[Sub Contractor Rate])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i am guessing what I want to achieve is not possible by firstsortedvalue function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 11:35:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-sorted-value/m-p/47866#M776932</guid>
      <dc:creator>jamelmessaoud</dc:creator>
      <dc:date>2018-04-17T11:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: First sorted value</title>
      <link>https://community.qlik.com/t5/QlikView/First-sorted-value/m-p/47867#M776933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jamel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your chart dimension? If it is Sub Contractor, then min(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;[Sub Contractor Type] = {'DropRate'}&amp;gt;}[Sub Contractor Rate])&lt;/SPAN&gt; would be sufficient. However, having different dimensions additionally, then firstsortedValue() is the one you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is exactly what you try to calculate? Dimension and Expressions please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OKtay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 11:40:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-sorted-value/m-p/47867#M776933</guid>
      <dc:creator>itec_pao</dc:creator>
      <dc:date>2018-04-17T11:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: First sorted value</title>
      <link>https://community.qlik.com/t5/QlikView/First-sorted-value/m-p/47868#M776934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be just this then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Min(Aggr(S&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;um({&amp;lt;[Sub Contractor Type] = {'DropRate'}&amp;gt;}[Sub Contractor Rate]), [&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sub Contractor]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 11:41:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-sorted-value/m-p/47868#M776934</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-17T11:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: First sorted value</title>
      <link>https://community.qlik.com/t5/QlikView/First-sorted-value/m-p/47869#M776935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both of your solutions did exactly what i wanted &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a shame I cannot set both to correct! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for your help guys &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cool.png" /&gt;&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 11:49:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-sorted-value/m-p/47869#M776935</guid>
      <dc:creator>jamelmessaoud</dc:creator>
      <dc:date>2018-04-17T11:49:25Z</dc:date>
    </item>
  </channel>
</rss>

