<?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: First Sorted Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/First-Sorted-Value/m-p/672089#M244099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works like a charm, thanks so much for the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jun 2014 22:50:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-27T22:50:57Z</dc:date>
    <item>
      <title>First Sorted Value</title>
      <link>https://community.qlik.com/t5/QlikView/First-Sorted-Value/m-p/672087#M244097</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;I'm trying to use the first sorted value function to return the overall winner of a test we're running. The table below shows the data I'm working with:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2014-06-27 at 17.28.22.png" class="jive-image" height="140" src="/legacyfs/online/61375_Screen Shot 2014-06-27 at 17.28.22.png" style="width: 368px; height: 140.0774193548387px;" width="368" /&gt;&lt;/P&gt;&lt;P&gt;The winner of this test has the highest Prejoin&amp;gt;Join ratio, which in this case is Theme 3200. I'd like to return the value 3200 in every row in the column 'Overall Winner'. I'm using the following expression without success:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;=&lt;/SPAN&gt;FirstSortedValue&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Themes&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;, -&lt;/SPAN&gt;Aggr&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;sum&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;&lt;STRONG&gt;&lt;EM&gt;vCTR&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;),&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Themes&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;vCTR is simply a variable storing the quotient of Join/Prejoin. If anyone has an idea on how to solve this that would be great. Sample data attached.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;Matt&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 21:48:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Sorted-Value/m-p/672087#M244097</guid>
      <dc:creator />
      <dc:date>2014-06-27T21:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: First Sorted Value</title>
      <link>https://community.qlik.com/t5/QlikView/First-Sorted-Value/m-p/672088#M244098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should do the trick:&lt;/P&gt;&lt;P&gt;only({&amp;lt;Themes={'=rank(sum(CT)/sum(C),0,1)=1'}&amp;gt;}total Themes)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 22:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Sorted-Value/m-p/672088#M244098</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-06-27T22:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: First Sorted Value</title>
      <link>https://community.qlik.com/t5/QlikView/First-Sorted-Value/m-p/672089#M244099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works like a charm, thanks so much for the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 22:50:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Sorted-Value/m-p/672089#M244099</guid>
      <dc:creator />
      <dc:date>2014-06-27T22:50:57Z</dc:date>
    </item>
  </channel>
</rss>

