<?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 not working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/First-Sorted-Value-not-working/m-p/1660407#M49518</link>
    <description>&lt;P&gt;It looks like you have an extra argument you shouldn't have; the third (optional) argument in&amp;nbsp;FirstSortedValue is the rank but you're passing "[Browser Type]" which is not a number.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;FirstSortedValue([Browser Type],-Aggr(Sum(Views),[Browser Type]))&lt;/P&gt;</description>
    <pubDate>Tue, 24 Dec 2019 09:49:14 GMT</pubDate>
    <dc:creator>lorenzoconforti</dc:creator>
    <dc:date>2019-12-24T09:49:14Z</dc:date>
    <item>
      <title>First Sorted Value not working</title>
      <link>https://community.qlik.com/t5/App-Development/First-Sorted-Value-not-working/m-p/1660377#M49511</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a table and I want to find out which browser has maximum views.&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;Browser Type&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Views&lt;/P&gt;&lt;P&gt;Chrome&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100&lt;/P&gt;&lt;P&gt;Mozilla&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50&lt;/P&gt;&lt;P&gt;IE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using this formula to find: &lt;EM&gt;&lt;STRONG&gt;FirstSortedValue([Browser Type],-Aggr(Sum(Views),[Browser Type]),[Browser Type])&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This formula is not working for some reason as KPI(working if used it in a table). However, if I remove the minus(-) sign, I'm getting IE as value.&lt;/P&gt;&lt;P&gt;I'm confused as to why this is not working. Please help.&lt;/P&gt;&lt;P&gt;Also, is there any alternative formula to use?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:44:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/First-Sorted-Value-not-working/m-p/1660377#M49511</guid>
      <dc:creator>Naushad07</dc:creator>
      <dc:date>2024-11-16T03:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: First Sorted Value not working</title>
      <link>https://community.qlik.com/t5/App-Development/First-Sorted-Value-not-working/m-p/1660402#M49516</link>
      <description>&lt;P&gt;try this :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;=FirstSortedValue([Browser Type],-Aggr(Max(Views),[Browser Type]))&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 24 Dec 2019 09:42:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/First-Sorted-Value-not-working/m-p/1660402#M49516</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-12-24T09:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: First Sorted Value not working</title>
      <link>https://community.qlik.com/t5/App-Development/First-Sorted-Value-not-working/m-p/1660407#M49518</link>
      <description>&lt;P&gt;It looks like you have an extra argument you shouldn't have; the third (optional) argument in&amp;nbsp;FirstSortedValue is the rank but you're passing "[Browser Type]" which is not a number.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;FirstSortedValue([Browser Type],-Aggr(Sum(Views),[Browser Type]))&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 09:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/First-Sorted-Value-not-working/m-p/1660407#M49518</guid>
      <dc:creator>lorenzoconforti</dc:creator>
      <dc:date>2019-12-24T09:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: First Sorted Value not working</title>
      <link>https://community.qlik.com/t5/App-Development/First-Sorted-Value-not-working/m-p/1660454#M49524</link>
      <description>&lt;P&gt;It did not work.&lt;/P&gt;&lt;P&gt;Same as before this is working without the minus(-) sign. I guess I need to know how to bring in the last value(rank) in the 3rd Argument.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 11:25:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/First-Sorted-Value-not-working/m-p/1660454#M49524</guid>
      <dc:creator>Naushad07</dc:creator>
      <dc:date>2019-12-24T11:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: First Sorted Value not working</title>
      <link>https://community.qlik.com/t5/App-Development/First-Sorted-Value-not-working/m-p/1660465#M49525</link>
      <description>&lt;P&gt;Ideally below expression should work as expected&lt;/P&gt;&lt;P&gt;=FirstSortedValue([Browser Type],- Aggr(sum(Views),[Browser Type]))&lt;/P&gt;&lt;P&gt;But, You can try below as well.&lt;/P&gt;&lt;P&gt;1) =Only({&amp;lt;[Browser Type]={"=rank(sum(Views),0,4)=1"}&amp;gt;}[Browser Type])&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) = aggr(if(max( total aggr(sum(Views),[Browser Type]))=sum(Views),[Browser Type]),[Browser Type])&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; Try to use set analysis expression first instead if.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 12:17:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/First-Sorted-Value-not-working/m-p/1660465#M49525</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2019-12-24T12:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: First Sorted Value not working</title>
      <link>https://community.qlik.com/t5/App-Development/First-Sorted-Value-not-working/m-p/1660495#M49528</link>
      <description>&lt;P&gt;Do you have multiple Browsers where Views have the same max value? If that is the case, then which one would you want to see? All of them or randomly one?&lt;/P&gt;&lt;P&gt;For Randomly one, try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FirstSortedValue(DISTINCT [Browser Type], -Aggr(Sum(Views), [Browser Type]))&lt;/LI-CODE&gt;&lt;P&gt;For displaying multiple values separated by comma&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Concat(Aggr(If(Sum(Views) = Max(TOTAL Aggr(Sum(Views), [Browser Type]), [Browser Type]), [Browser Type]), ', ')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 13:33:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/First-Sorted-Value-not-working/m-p/1660495#M49528</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-12-24T13:33:32Z</dc:date>
    </item>
  </channel>
</rss>

