<?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 Aggr / Set Analysis Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-Set-Analysis-Problem/m-p/306496#M1185111</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;Please look at the atached qvw. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to take the UnitPrice&amp;nbsp; of the highest Ord, group by Key.&lt;/P&gt;&lt;P&gt;i.e: to the Key = pal-320346 I want to show: 34.2&lt;/P&gt;&lt;P&gt; Key = pal-323111 I want to shoe: 11.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression is:&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sum &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Ord&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = {'=(Aggr(Max(Ord),Key))'} &amp;gt;}(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;UnitPrice&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) )&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The QV take the UnitPrice from the first loaded row.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;How can i do that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Many Thanks - &lt;BR /&gt;Matan.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Oct 2011 07:32:06 GMT</pubDate>
    <dc:creator>matancha</dc:creator>
    <dc:date>2011-10-02T07:32:06Z</dc:date>
    <item>
      <title>Aggr / Set Analysis Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Set-Analysis-Problem/m-p/306496#M1185111</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;Please look at the atached qvw. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to take the UnitPrice&amp;nbsp; of the highest Ord, group by Key.&lt;/P&gt;&lt;P&gt;i.e: to the Key = pal-320346 I want to show: 34.2&lt;/P&gt;&lt;P&gt; Key = pal-323111 I want to shoe: 11.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression is:&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sum &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Ord&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = {'=(Aggr(Max(Ord),Key))'} &amp;gt;}(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;UnitPrice&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) )&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The QV take the UnitPrice from the first loaded row.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;How can i do that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Many Thanks - &lt;BR /&gt;Matan.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Oct 2011 07:32:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Set-Analysis-Problem/m-p/306496#M1185111</guid>
      <dc:creator>matancha</dc:creator>
      <dc:date>2011-10-02T07:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr / Set Analysis Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Set-Analysis-Problem/m-p/306497#M1185112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Ok... &lt;/P&gt;&lt;P&gt;Think that found solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt; &lt;/SPAN&gt;({&amp;lt; &lt;SPAN style="color: #800000;"&gt;Ord&lt;/SPAN&gt; = {'= Ord =(Aggr(NODISTINCT Max(Ord),Key))'} &amp;gt;}(&lt;SPAN style="color: #800000;"&gt;UnitPrice&lt;/SPAN&gt;) ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;See attached - &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Matan.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Oct 2011 08:38:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Set-Analysis-Problem/m-p/306497#M1185112</guid>
      <dc:creator>matancha</dc:creator>
      <dc:date>2011-10-02T08:38:59Z</dc:date>
    </item>
    <item>
      <title>Aggr / Set Analysis Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Set-Analysis-Problem/m-p/306498#M1185113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A simplier way to do this create an expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=FirstSortedValue( UnitPrice , -Ord)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(if Ord &amp;gt; 0) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Oct 2011 17:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Set-Analysis-Problem/m-p/306498#M1185113</guid>
      <dc:creator />
      <dc:date>2011-10-02T17:23:25Z</dc:date>
    </item>
  </channel>
</rss>

