<?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 with load order in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-with-load-order/m-p/1050305#M464207</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have created a field like RowNo() as Key, you should be able to use Key as a load order. Is this what you were looking for, or did I mis-understand?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Apr 2016 19:04:13 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-04-29T19:04:13Z</dc:date>
    <item>
      <title>Firstsortedvalue with load order</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-with-load-order/m-p/1050304#M464206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to use a field in the firstsortedvalue function with a weight of it's load order?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 19:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-with-load-order/m-p/1050304#M464206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-29T19:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue with load order</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-with-load-order/m-p/1050305#M464207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have created a field like RowNo() as Key, you should be able to use Key as a load order. Is this what you were looking for, or did I mis-understand?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 19:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-with-load-order/m-p/1050305#M464207</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-29T19:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue with load order</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-with-load-order/m-p/1050306#M464208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Another option is to use the Aggr() functions load order capability here. (This wouldn't require any modification in the script)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Script&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Country, Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;India, 10&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;India, 15&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;India, 12&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="; color: #00ff00;"&gt;&lt;STRONG&gt;India, 16&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="; color: #ff0000;"&gt;&lt;STRONG&gt;USA, 12&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;USA, 30&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;USA, 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;USA, 49&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="; color: #00ff00;"&gt;&lt;STRONG&gt;USA, 2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;China, 23&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #00ff00;"&gt;&lt;STRONG&gt;China, 40&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Greens are the last value by load order and Red are the first value by load order&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Straight table&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Dimension&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Expression&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1) &lt;STRONG&gt;=FirstSortedValue(Value, -Aggr(RowNo(TOTAL), Value, Country)) &lt;/STRONG&gt;-&amp;gt; Green Values&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2) &lt;STRONG&gt;=FirstSortedValue(Value, Aggr(RowNo(TOTAL), Value, Country)) &lt;/STRONG&gt;-&amp;gt; Red Values&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/123189_Capture.PNG" style="height: 145px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 22:04:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-with-load-order/m-p/1050306#M464208</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-29T22:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue with load order</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-with-load-order/m-p/1913136#M1218257</link>
      <description>&lt;P&gt;One caveat with this approach is that if the Value field in the above example has duplicates, the load order is determined by the global load order and not the load order sliced by each country. So this will really only work when the Value field values are unique.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 13:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-with-load-order/m-p/1913136#M1218257</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2022-04-01T13:01:50Z</dc:date>
    </item>
  </channel>
</rss>

