<?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 maxstring with two possible values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/maxstring-with-two-possible-values/m-p/505405#M188979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys! I'm using the maxstring() function to get the maximum read book of a list, and it works well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that sometimes I got more than one possible row, and I have the maximum value in a textbox and the same metric in a straight table, and not always they are at the top position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how to fix it? Here you have an image explaining what I'm saying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="MaxString.png" class="jive-image" height="298" src="https://community.qlik.com/legacyfs/online/49681_MaxString.png" style="height: 298px; width: 185.32338308457713px;" width="185" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Nov 2013 17:44:00 GMT</pubDate>
    <dc:creator>marcel_olmo</dc:creator>
    <dc:date>2013-11-28T17:44:00Z</dc:date>
    <item>
      <title>maxstring with two possible values</title>
      <link>https://community.qlik.com/t5/QlikView/maxstring-with-two-possible-values/m-p/505405#M188979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys! I'm using the maxstring() function to get the maximum read book of a list, and it works well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that sometimes I got more than one possible row, and I have the maximum value in a textbox and the same metric in a straight table, and not always they are at the top position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how to fix it? Here you have an image explaining what I'm saying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="MaxString.png" class="jive-image" height="298" src="https://community.qlik.com/legacyfs/online/49681_MaxString.png" style="height: 298px; width: 185.32338308457713px;" width="185" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 17:44:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/maxstring-with-two-possible-values/m-p/505405#M188979</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2013-11-28T17:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: maxstring with two possible values</title>
      <link>https://community.qlik.com/t5/QlikView/maxstring-with-two-possible-values/m-p/505406#M188980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of MaxString() have you tried Rank() or FirstSortedValue()?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 17:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/maxstring-with-two-possible-values/m-p/505406#M188980</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2013-11-28T17:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: maxstring with two possible values</title>
      <link>https://community.qlik.com/t5/QlikView/maxstring-with-two-possible-values/m-p/505407#M188981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, and it didn't work. In the forum the people recommended me using maxstring to get my goal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that when I have two books with the same value, I found no way to put an "order by" clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Marcel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 17:52:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/maxstring-with-two-possible-values/m-p/505407#M188981</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2013-11-28T17:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: maxstring with two possible values</title>
      <link>https://community.qlik.com/t5/QlikView/maxstring-with-two-possible-values/m-p/505408#M188982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a sample app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 18:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/maxstring-with-two-possible-values/m-p/505408#M188982</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2013-11-28T18:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: maxstring with two possible values</title>
      <link>https://community.qlik.com/t5/QlikView/maxstring-with-two-possible-values/m-p/505409#M188983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like,&lt;/P&gt;&lt;P&gt;If two or more books share the same rank, the first one in alphabetical order will be returned&lt;/P&gt;&lt;P&gt;=FirstSortedValue(Book,-Aggr(Sum(Sales)+rank(Book,Book)/10,Book))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 18:12:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/maxstring-with-two-possible-values/m-p/505409#M188983</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-11-28T18:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: maxstring with two possible values</title>
      <link>https://community.qlik.com/t5/QlikView/maxstring-with-two-possible-values/m-p/505410#M188984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like sample attached ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression like: &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;=MaxString(Aggr(If(Rank(Sum(Amt))=1,Str),Str))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 18:15:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/maxstring-with-two-possible-values/m-p/505410#M188984</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-11-28T18:15:40Z</dc:date>
    </item>
  </channel>
</rss>

