<?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 Firstsortedvalue issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-issue/m-p/1400381#M612016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've read a lot about the function firstsortedvalue() but do not get the expected result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with 4 fields.&lt;/P&gt;&lt;P&gt;- &lt;SPAN style="font-size: 13.3333px;"&gt;PrognoseID &lt;/SPAN&gt;(1-150)&lt;/P&gt;&lt;P&gt;- Article (numbers)&lt;/P&gt;&lt;P&gt;- Flag A: letters &lt;/P&gt;&lt;P&gt;- Flag B: &lt;SPAN style="font-size: 13.3333px;"&gt;letters &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 462px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="72"&gt;Article&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="139"&gt;PrognoseID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="104"&gt;FlagA&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="147"&gt;FlagB&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;14417&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;128&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;c&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;a&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;14417&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;92&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;c&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;a&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;14417&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;81&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;c&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;a&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="20" style="border-top: none;"&gt;14470&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;135&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;o&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;a&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="20" style="border-top: none;"&gt;14470&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;119&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;o&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;a&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="20" style="border-top: none;"&gt;14470&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;87&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;o&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;a&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some Articles are in different IDs with different Flags.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is to have Flag A and B for each Article based on the highest ID number. For Article 14417 this would be c &amp;amp; a from PrognoseID 128.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason, my ressult is blanc entries for Flag A &amp;amp; B for most of the articles. I hope one of you can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below the script;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sortiment_Temp:&lt;/P&gt;&lt;P&gt;LOAD PrognoseID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Article&lt;/SPAN&gt;, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FlagA, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;FlagB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\03_Datasource\Sortiment.qvd]&lt;/P&gt;&lt;P&gt;(qvd) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sortiment:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;max(PrognoseID) as PrognoseID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Article&lt;/SPAN&gt;, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(&lt;SPAN style="font-size: 13.3333px;"&gt;FlagA&lt;/SPAN&gt;,PrognoseID) as &lt;SPAN style="font-size: 13.3333px;"&gt;FlagA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(&lt;SPAN style="font-size: 13.3333px;"&gt;FlagB&lt;/SPAN&gt;,&lt;SPAN style="font-size: 13.3333px;"&gt;PrognoseID&lt;/SPAN&gt;) as &lt;SPAN style="font-size: 13.3333px;"&gt;FlagA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Resident &lt;SPAN style="font-size: 13.3333px;"&gt;Sortiment_Temp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Group by &lt;SPAN style="font-size: 13.3333px;"&gt;Article&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Nov 2017 10:52:46 GMT</pubDate>
    <dc:creator>sprqlikview</dc:creator>
    <dc:date>2017-11-02T10:52:46Z</dc:date>
    <item>
      <title>Firstsortedvalue issue</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-issue/m-p/1400381#M612016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've read a lot about the function firstsortedvalue() but do not get the expected result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with 4 fields.&lt;/P&gt;&lt;P&gt;- &lt;SPAN style="font-size: 13.3333px;"&gt;PrognoseID &lt;/SPAN&gt;(1-150)&lt;/P&gt;&lt;P&gt;- Article (numbers)&lt;/P&gt;&lt;P&gt;- Flag A: letters &lt;/P&gt;&lt;P&gt;- Flag B: &lt;SPAN style="font-size: 13.3333px;"&gt;letters &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 462px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="72"&gt;Article&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="139"&gt;PrognoseID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="104"&gt;FlagA&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="147"&gt;FlagB&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;14417&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;128&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;c&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;a&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;14417&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;92&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;c&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;a&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="border-top: none;"&gt;14417&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;81&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;c&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;a&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="20" style="border-top: none;"&gt;14470&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;135&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;o&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;a&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="20" style="border-top: none;"&gt;14470&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;119&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;o&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;a&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="20" style="border-top: none;"&gt;14470&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;87&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;o&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;a&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some Articles are in different IDs with different Flags.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is to have Flag A and B for each Article based on the highest ID number. For Article 14417 this would be c &amp;amp; a from PrognoseID 128.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason, my ressult is blanc entries for Flag A &amp;amp; B for most of the articles. I hope one of you can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below the script;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sortiment_Temp:&lt;/P&gt;&lt;P&gt;LOAD PrognoseID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Article&lt;/SPAN&gt;, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FlagA, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;FlagB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\03_Datasource\Sortiment.qvd]&lt;/P&gt;&lt;P&gt;(qvd) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sortiment:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;max(PrognoseID) as PrognoseID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Article&lt;/SPAN&gt;, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(&lt;SPAN style="font-size: 13.3333px;"&gt;FlagA&lt;/SPAN&gt;,PrognoseID) as &lt;SPAN style="font-size: 13.3333px;"&gt;FlagA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(&lt;SPAN style="font-size: 13.3333px;"&gt;FlagB&lt;/SPAN&gt;,&lt;SPAN style="font-size: 13.3333px;"&gt;PrognoseID&lt;/SPAN&gt;) as &lt;SPAN style="font-size: 13.3333px;"&gt;FlagA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Resident &lt;SPAN style="font-size: 13.3333px;"&gt;Sortiment_Temp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Group by &lt;SPAN style="font-size: 13.3333px;"&gt;Article&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 10:52:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-issue/m-p/1400381#M612016</guid>
      <dc:creator>sprqlikview</dc:creator>
      <dc:date>2017-11-02T10:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue issue</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-issue/m-p/1400382#M612017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Table:&lt;/SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; * &lt;SPAN style="color: #0000ff;"&gt;Inline&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[&lt;BR /&gt; Article PrognoseID FlagA FlagB &lt;BR /&gt; 14417 128 c a &lt;BR /&gt; 14417 92 c a &lt;BR /&gt; 14417 81 c a &lt;BR /&gt; 14470 135 o a &lt;BR /&gt; 14470 119 o a &lt;BR /&gt; 14470 87 o a &lt;BR /&gt; ]&lt;/SPAN&gt; (&lt;SPAN style="color: #0000ff;"&gt;delimiter&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;is&lt;/SPAN&gt; spaces);&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Inner&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Join&lt;/SPAN&gt;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;Max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;PrognoseID&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PrognoseID&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; Table&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Group&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;By&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Article&lt;/SPAN&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/181836_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 11:02:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-issue/m-p/1400382#M612017</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-11-02T11:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue issue</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-issue/m-p/1400383#M612018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Article,Max(PrognoseID) as PrognoseID, FlagA, FlagB INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Article, PrognoseID, FlagA, FlagB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14417, 128, c, a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14417, 92, c, a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14417, 81, c, a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14470, 135, o, a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14470, 119, o, a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14470, 87, o, a&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;Group by Article, FlagA, FlagB;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 11:14:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-issue/m-p/1400383#M612018</guid>
      <dc:creator>srivastalans</dc:creator>
      <dc:date>2017-11-02T11:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue issue</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-issue/m-p/1400384#M612019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sortiment:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load max(PrognoseID) as PrognoseID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Article,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(&lt;SPAN style="color: #ff0000;"&gt;DISTINCT&lt;/SPAN&gt; FlagA, &lt;SPAN style="color: #ff0000;"&gt;-&lt;/SPAN&gt;PrognoseID) as FlagA&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(&lt;SPAN style="color: #ff0000;"&gt;DISTINCT&lt;/SPAN&gt; FlagB,&lt;STRONG style="font-size: 13.3333px;"&gt; &lt;SPAN style="color: #ff0000;"&gt;-&lt;/SPAN&gt;&lt;/STRONG&gt;PrognoseID) as FlagB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Sortiment_Temp&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Group by Article;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 11:18:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-issue/m-p/1400384#M612019</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-02T11:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue issue</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-issue/m-p/1400385#M612020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get an error if I add Distinct. The minus before PrognoseID I tried before but it does not make a difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 12:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-issue/m-p/1400385#M612020</guid>
      <dc:creator>sprqlikview</dc:creator>
      <dc:date>2017-11-02T12:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue issue</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-issue/m-p/1400386#M612021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion but I still get an multiple entries per article.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 12:09:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-issue/m-p/1400386#M612021</guid>
      <dc:creator>sprqlikview</dc:creator>
      <dc:date>2017-11-02T12:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue issue</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-issue/m-p/1400387#M612022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like the FlagA and FlagB don't really change? If that is true then make them part of your Group By?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sortiment:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Load max(PrognoseID) as PrognoseID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Article,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FlagA&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FlagB&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Resident Sortiment_Temp&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Group by Article, FlagA, &lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;FlagB&lt;/STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 12:11:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-issue/m-p/1400387#M612022</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-02T12:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue issue</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-issue/m-p/1400388#M612023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's possible that they change and therefore I want the latest one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example I should, for example, have used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;14417, 128, c, a&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14417, 92, &lt;STRONG&gt;b, d&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14417, 81, c, a&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14470, 135, o, a&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14470, 119, &lt;STRONG&gt;f, d&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14470, 87, o, a&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 12:16:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-issue/m-p/1400388#M612023</guid>
      <dc:creator>sprqlikview</dc:creator>
      <dc:date>2017-11-02T12:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue issue</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-issue/m-p/1400389#M612024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this... and had no errors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Article, PrognoseID, FlagA, FlagB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14417, 128, c, a&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14417, 92, b, d&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14417, 81, c, a&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14470, 135, o, a&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14470, 119, f, d&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14470, 87, o, a&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Article,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max(PrognoseID) as PrognoseID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(DISTINCT FlagA, -PrognoseID) as FlagA,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(DISTINCT FlagB, -PrognoseID) as FlagB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By Article;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What errors were you getting when you used DISTINCT?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 12:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-issue/m-p/1400389#M612024</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-02T12:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue issue</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-issue/m-p/1400390#M612025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked. I think I was confused because the script was red underlined but when I run the script it works. Maybe a bug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Clipboard01.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/181828_Clipboard01.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 12:29:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-issue/m-p/1400390#M612025</guid>
      <dc:creator>sprqlikview</dc:creator>
      <dc:date>2017-11-02T12:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue issue</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-issue/m-p/1400391#M612026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you are using an older version of QlikView because I don't see the red wiggly lines. I think they updated the syntax editor with QV12 release&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 12:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-issue/m-p/1400391#M612026</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-02T12:30:46Z</dc:date>
    </item>
  </channel>
</rss>

