<?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: simple firstsortedvalue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/simple-firstsortedvalue/m-p/389585#M145373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;according to me it should be something like ths:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;firstsortedvalue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;JAAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rangemax&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NIVEAU&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;JAAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jan 2013 12:40:52 GMT</pubDate>
    <dc:creator>shahamel</dc:creator>
    <dc:date>2013-01-31T12:40:52Z</dc:date>
    <item>
      <title>simple firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/simple-firstsortedvalue/m-p/389584#M145372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear QV-users,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 12pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; JAAR, NIVEAU&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2000, NIVEAU1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2000, NIVEAU2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2001, NIVEAU4&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2002, NIVEAU2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2002, NIVEAU3&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2003, NIVEAU1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2003, NIVEAU2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2003, NIVEAU3&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2003, NIVEAU3&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I would like to create a table as in Niveautest.xslx (see attachmant).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 12:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-firstsortedvalue/m-p/389584#M145372</guid>
      <dc:creator>shahamel</dc:creator>
      <dc:date>2013-01-31T12:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: simple firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/simple-firstsortedvalue/m-p/389585#M145373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;according to me it should be something like ths:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;firstsortedvalue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;JAAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rangemax&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NIVEAU&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;JAAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 12:40:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-firstsortedvalue/m-p/389585#M145373</guid>
      <dc:creator>shahamel</dc:creator>
      <dc:date>2013-01-31T12:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: simple firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/simple-firstsortedvalue/m-p/389586#M145374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try creating a chart with dimension JAAR and as expression either&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=maxstring(NIVEAU)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or maybe something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=FirstSortedValue(DISTINCT NIVEAU, -keepchar(NIVEAU,'0123456789'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[You can preprare the numeric sort weight of course also in the script, generating an additional field]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 12:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-firstsortedvalue/m-p/389586#M145374</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-01-31T12:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: simple firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/simple-firstsortedvalue/m-p/389587#M145375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shahamel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can solve this using the LastValue function and grouping the values by the JAAR field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attached file. Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 12:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-firstsortedvalue/m-p/389587#M145375</guid>
      <dc:creator>jeffmartins</dc:creator>
      <dc:date>2013-01-31T12:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: simple firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/simple-firstsortedvalue/m-p/389588#M145376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a correct answer, but i would like to have a similar result, by just using an expression. I would like to do nothing within the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This problem has to do with this problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/304529#304529"&gt;http://community.qlik.com/message/304529#304529&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the discussion on this page i created a simplyfied situation. But the result i am looking for is stated in the txt.fle in the discussion on this url:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading active_link" href="https://community.qlik.com/message/304529#304529"&gt;http://community.qlik.com/message/304529#304529&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gr. Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 12:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-firstsortedvalue/m-p/389588#M145376</guid>
      <dc:creator>shahamel</dc:creator>
      <dc:date>2013-01-31T12:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: simple firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/simple-firstsortedvalue/m-p/389589#M145377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shahamel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created an expression to solve this problem, the expression is a little complex so, I created a solution 2 that is simpler and faster, but it uses a flag created in script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution 2 &lt;/P&gt;&lt;P&gt;1) In Script - Mark with a flag the records you want show.&lt;/P&gt;&lt;P&gt;2) In Layout - Use the flag with set analysis in the expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;See the attached file. Hope it helps you.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 17:30:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-firstsortedvalue/m-p/389589#M145377</guid>
      <dc:creator>jeffmartins</dc:creator>
      <dc:date>2013-01-31T17:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: simple firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/simple-firstsortedvalue/m-p/389590#M145378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SubField&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;NIVEAU&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;,',',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;JAAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;),&lt;BR /&gt; ',',&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;SubStringCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;NIVEAU&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;,',',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;JAAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;),',')+1&lt;BR /&gt;&lt;BR /&gt; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;that works, but i don't understand yet what is happening here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;when you have spare time, could you explain above's expression?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Gr. Sandeep&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 11:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-firstsortedvalue/m-p/389590#M145378</guid>
      <dc:creator>shahamel</dc:creator>
      <dc:date>2013-02-04T11:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: simple firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/simple-firstsortedvalue/m-p/389591#M145379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have another question on top of that. It is possible to nest your expression within another expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 11:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/simple-firstsortedvalue/m-p/389591#M145379</guid>
      <dc:creator>shahamel</dc:creator>
      <dc:date>2013-02-04T11:55:48Z</dc:date>
    </item>
  </channel>
</rss>

