<?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 First Sorted Value (Again!) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/First-Sorted-Value-Again/m-p/49488#M778115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this expression brings back more than one result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=firstsortedvalue([Sub Contractor], -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;The result is showing null. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to show more than one Sub Contractor using this expression?&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>
    <dc:creator>jamelmessaoud</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>First Sorted Value (Again!)</title>
      <link>https://community.qlik.com/t5/QlikView/First-Sorted-Value-Again/m-p/49488#M778115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this expression brings back more than one result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=firstsortedvalue([Sub Contractor], -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;The result is showing null. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to show more than one Sub Contractor using this expression?&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-Again/m-p/49488#M778115</guid>
      <dc:creator>jamelmessaoud</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: First Sorted Value (Again!)</title>
      <link>https://community.qlik.com/t5/QlikView/First-Sorted-Value-Again/m-p/49489#M778116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Concat() instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concat(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;[Sub Contractor Type] = {'Base Rate'}&amp;gt;} &lt;/SPAN&gt;Aggr(If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;[Sub Contractor Type] = {'Base Rate'}&amp;gt;}[Sub Contractor Rate]) = Max(TOTAL Aggr(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;[Sub Contractor Type] = {'Base Rate'}&amp;gt;}[Sub Contractor Rate]), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Sub Contractor])), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Sub Contractor]), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Sub Contractor]), ', '&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&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;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 13:24:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Sorted-Value-Again/m-p/49489#M778116</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-17T13:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: First Sorted Value (Again!)</title>
      <link>https://community.qlik.com/t5/QlikView/First-Sorted-Value-Again/m-p/49490#M778117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That doesn't quite do what I want.&amp;nbsp; The expression which you helped me with earlier worked perfectly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Min(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;In an ideal world I want to pull back the Sub Contractors from this same expression if it's possible?&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>Tue, 17 Apr 2018 13:32:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Sorted-Value-Again/m-p/49490#M778117</guid>
      <dc:creator>jamelmessaoud</dc:creator>
      <dc:date>2018-04-17T13:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: First Sorted Value (Again!)</title>
      <link>https://community.qlik.com/t5/QlikView/First-Sorted-Value-Again/m-p/49491#M778118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want the sub contractor from the min date or max date? For min... you can try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Concat(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;{&amp;lt;[Sub Contractor Type] = {'Base Rate'}&amp;gt;} &lt;/SPAN&gt;Aggr(If(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Sum({&amp;lt;[Sub Contractor Type] = {'Base Rate'}&amp;gt;}[Sub Contractor Rate]) = &lt;SPAN style="color: #ff0000;"&gt;Min&lt;/SPAN&gt;(TOTAL Aggr(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Sum({&amp;lt;[Sub Contractor Type] = {'Base Rate'}&amp;gt;}[Sub Contractor Rate]), &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Sub Contractor])), &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Sub Contractor]), &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Sub Contractor]), ', '&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 13:33:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Sorted-Value-Again/m-p/49491#M778118</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-17T13:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: First Sorted Value (Again!)</title>
      <link>https://community.qlik.com/t5/QlikView/First-Sorted-Value-Again/m-p/49492#M778119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works Sunny.&amp;nbsp; Changed the max to min!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concat({&amp;lt;[Sub Contractor Type] = {'Base Rate'}&amp;gt;} Aggr(If(Sum({&amp;lt;[Sub Contractor Type] = {'Base Rate'}&amp;gt;}[Sub Contractor Rate]) = &lt;/P&gt;&lt;P&gt;min(TOTAL Aggr(Sum({&amp;lt;[Sub Contractor Type] = {'Base Rate'}&amp;gt;}[Sub Contractor Rate]), [Sub Contractor])), [Sub Contractor]), [Sub Contractor]), ', ')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 13:39:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Sorted-Value-Again/m-p/49492#M778119</guid>
      <dc:creator>jamelmessaoud</dc:creator>
      <dc:date>2018-04-17T13:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: First Sorted Value (Again!)</title>
      <link>https://community.qlik.com/t5/QlikView/First-Sorted-Value-Again/m-p/49493#M778120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You beat me to it! &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 13:40:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Sorted-Value-Again/m-p/49493#M778120</guid>
      <dc:creator>jamelmessaoud</dc:creator>
      <dc:date>2018-04-17T13:40:03Z</dc:date>
    </item>
  </channel>
</rss>

