<?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 Max Value through firstsortedvalue function... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-Value-through-firstsortedvalue-function/m-p/523232#M1129005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data as depicted in the following sample table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/50821_pastedImage_0.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For minimum of rate I have to display the maximum of purchase order. Thus for the above sample my result should be: &lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/50825_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using: &lt;STRONG style="color: #ff0000;"&gt;FirstSortedValue(PURCHASE_ORDER,RATE). &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;It works when there is just 1 occurrence of minimum rate, but otherwise it results in null value. ( I have to accomplish this in front end, so no reload is possible).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Please suggest a solution.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Dec 2013 04:57:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-25T04:57:42Z</dc:date>
    <item>
      <title>Max Value through firstsortedvalue function...</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Value-through-firstsortedvalue-function/m-p/523232#M1129005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data as depicted in the following sample table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/50821_pastedImage_0.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For minimum of rate I have to display the maximum of purchase order. Thus for the above sample my result should be: &lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/50825_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using: &lt;STRONG style="color: #ff0000;"&gt;FirstSortedValue(PURCHASE_ORDER,RATE). &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;It works when there is just 1 occurrence of minimum rate, but otherwise it results in null value. ( I have to accomplish this in front end, so no reload is possible).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Please suggest a solution.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Dec 2013 04:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Value-through-firstsortedvalue-function/m-p/523232#M1129005</guid>
      <dc:creator />
      <dc:date>2013-12-25T04:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Max Value through firstsortedvalue function...</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Value-through-firstsortedvalue-function/m-p/523233#M1129006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I figured out the answer by hit and trial. For those who are interested:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(aggr(max(PURCHASE_ORDER),RATE), aggr(min(RATE),RATE))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Dec 2013 06:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Value-through-firstsortedvalue-function/m-p/523233#M1129006</guid>
      <dc:creator />
      <dc:date>2013-12-25T06:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Max Value through firstsortedvalue function...</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Value-through-firstsortedvalue-function/m-p/523234#M1129007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Added note:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have multiple material in he table then change the formula to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FirstSortedValue(aggr(max(PURCHASE_ORDER),RATE,MATERIAL), aggr(min(RATE),CAL_RATE_P,MATERIAL)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Dec 2013 07:24:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Value-through-firstsortedvalue-function/m-p/523234#M1129007</guid>
      <dc:creator />
      <dc:date>2013-12-25T07:24:08Z</dc:date>
    </item>
  </channel>
</rss>

