<?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 and Max functions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Max-functions/m-p/1043608#M940525</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;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;FirstSortedValue&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Dimension&lt;/SPAN&gt;,-(&lt;SPAN style="color: #0000ff;"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;XXX+FieldIndex('Dimension',Dimension)/1000 &lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;Dimension&lt;/SPAN&gt;)),1)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #000000;"&gt;----&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;1,2,3,....7&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;FirstSortedValue&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;XXX&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Dimension&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;,-(&lt;SPAN style="color: #0000ff;"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;XXX+FieldIndex('Dimension',Dimension)/1000 &lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;Dimension&lt;/SPAN&gt;)),1)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Feb 2016 19:22:50 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-02-03T19:22:50Z</dc:date>
    <item>
      <title>FirstSortedValue and Max functions</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Max-functions/m-p/1043606#M940523</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 have a requirement to replicate a straight table as individual text boxes as shown in screenshot below. I am using Max and First Sorted Value expressions (Expressions pasted below). Somehow these functions only consider distinct values. In my example "68" is repeated twice but Max function only considers it once and first sorted value ignore completely. How do I resolve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions I am using: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;SPAN style="color: #0000ff;"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;XXX&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;Dimension&lt;/SPAN&gt;),1) ----&amp;gt;&lt;SPAN style="color: #ff0000;"&gt;1,2,3,....7&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;FirstSortedValue&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Dimension&lt;/SPAN&gt;,-(&lt;SPAN style="color: #0000ff;"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;XXX&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;Dimension&lt;/SPAN&gt;)),1) &lt;SPAN style="color: #000000;"&gt;----&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;1,2,3,....7&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/113487_pastedImage_12.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 18:51:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Max-functions/m-p/1043606#M940523</guid>
      <dc:creator>rishimessi19</dc:creator>
      <dc:date>2016-02-03T18:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue and Max functions</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Max-functions/m-p/1043607#M940524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to make the max value unique somehow. Perhaps this will do:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;FirstSortedValue&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Dimension&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;,-(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;XXX*1000+Ord(Left(Dimension,1))&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Dimension&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;)),1) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 19:19:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Max-functions/m-p/1043607#M940524</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-02-03T19:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue and Max functions</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Max-functions/m-p/1043608#M940525</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;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;FirstSortedValue&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Dimension&lt;/SPAN&gt;,-(&lt;SPAN style="color: #0000ff;"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;XXX+FieldIndex('Dimension',Dimension)/1000 &lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;Dimension&lt;/SPAN&gt;)),1)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #000000;"&gt;----&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;1,2,3,....7&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;FirstSortedValue&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;XXX&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Dimension&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;,-(&lt;SPAN style="color: #0000ff;"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;XXX+FieldIndex('Dimension',Dimension)/1000 &lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;Dimension&lt;/SPAN&gt;)),1)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 19:22:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-and-Max-functions/m-p/1043608#M940525</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-03T19:22:50Z</dc:date>
    </item>
  </channel>
</rss>

