<?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 and concat in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/firstsortedvalue-and-concat/m-p/1332631#M617868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Concat(DISTINCT Aggr(If(truckQty = Max(TOTAL &amp;lt;Product&amp;gt; truckQty), Unit), Product, Unit), ', ')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Apr 2017 14:22:20 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-04-27T14:22:20Z</dc:date>
    <item>
      <title>firstsortedvalue and concat</title>
      <link>https://community.qlik.com/t5/QlikView/firstsortedvalue-and-concat/m-p/1332627#M617864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to add an expression in a chart that shows 'Unit' grouped by Product with the max truckQty (and max unitQty). Or even concat multiple results if it returns more than 1 result for max truckQty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; Product, Unit, truckQty, unitQty&lt;BR /&gt; a, aa, 10000, 100&lt;BR /&gt; a, bb, 5000, 200&lt;BR /&gt; a, cc, 7000, 100&lt;BR /&gt; a, dd, 10000, 250&lt;BR /&gt; b, aa, 10000, 200&lt;BR /&gt; b, bb, 8000, 300&lt;BR /&gt; b, cc, 5000, 250&lt;BR /&gt; b, dd, 11000, 250&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FirstSortedValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(distinct Unit, -truckQty) &lt;/SPAN&gt; returns the following as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a | aa&lt;/P&gt;&lt;P&gt;b | dd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, my question is how do I get 'a' to return 'dd' (largest truck qty and largest unit qty). I have tried the aggr function but have not been able to get the expected results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for taking the time to help me....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 14:05:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsortedvalue-and-concat/m-p/1332627#M617864</guid>
      <dc:creator />
      <dc:date>2017-04-27T14:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: firstsortedvalue and concat</title>
      <link>https://community.qlik.com/t5/QlikView/firstsortedvalue-and-concat/m-p/1332628#M617865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(Distinct Unit, -(truckQty+(unitQty/1E10)))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 14:11:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsortedvalue-and-concat/m-p/1332628#M617865</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-27T14:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: firstsortedvalue and concat</title>
      <link>https://community.qlik.com/t5/QlikView/firstsortedvalue-and-concat/m-p/1332629#M617866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample attached&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/161495_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 14:15:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsortedvalue-and-concat/m-p/1332629#M617866</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-27T14:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: firstsortedvalue and concat</title>
      <link>https://community.qlik.com/t5/QlikView/firstsortedvalue-and-concat/m-p/1332630#M617867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works, thank you so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more question... what if I wanted to include both values for max truckQty of 'a' as 'dd,aa' ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 14:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsortedvalue-and-concat/m-p/1332630#M617867</guid>
      <dc:creator />
      <dc:date>2017-04-27T14:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: firstsortedvalue and concat</title>
      <link>https://community.qlik.com/t5/QlikView/firstsortedvalue-and-concat/m-p/1332631#M617868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Concat(DISTINCT Aggr(If(truckQty = Max(TOTAL &amp;lt;Product&amp;gt; truckQty), Unit), Product, Unit), ', ')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 14:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsortedvalue-and-concat/m-p/1332631#M617868</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-27T14:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: firstsortedvalue and concat</title>
      <link>https://community.qlik.com/t5/QlikView/firstsortedvalue-and-concat/m-p/1332632#M617869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brilliant! Thank you for your help and for responding so quickly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 14:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsortedvalue-and-concat/m-p/1332632#M617869</guid>
      <dc:creator />
      <dc:date>2017-04-27T14:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: firstsortedvalue and concat</title>
      <link>https://community.qlik.com/t5/QlikView/firstsortedvalue-and-concat/m-p/1629230#M617870</link>
      <description>&lt;P&gt;Hello sunny. Is there any more performant way to do that? Thank you very much.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 19:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsortedvalue-and-concat/m-p/1629230#M617870</guid>
      <dc:creator>FranAgraz</dc:creator>
      <dc:date>2019-09-27T19:22:30Z</dc:date>
    </item>
  </channel>
</rss>

