<?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 First Value? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/First-Value/m-p/217411#M70619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I read your requirements correctly, you want to see:&lt;/P&gt;&lt;P&gt;BP CA Acct...&lt;/P&gt;&lt;P&gt;1234 5555 DU&lt;/P&gt;&lt;P&gt;5678 1111 DU&lt;/P&gt;&lt;P&gt;IF so, shouldn't you then apply the FirstValue function to the CA and Account_Det_ID fields and remove them from the Group By so it is only grouping on BP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Nov 2009 10:38:18 GMT</pubDate>
    <dc:creator>michael_anthony</dc:creator>
    <dc:date>2009-11-09T10:38:18Z</dc:date>
    <item>
      <title>First Value?</title>
      <link>https://community.qlik.com/t5/QlikView/First-Value/m-p/217397#M70605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am loading data, as below, but I can't get the FIRST VALUE to work.&lt;/P&gt;&lt;P&gt;&lt;I&gt;FKKVKP:&lt;BR /&gt;&lt;/I&gt;&lt;B&gt;LOAD&lt;BR /&gt;&lt;/B&gt; BP,&lt;BR /&gt;CA,&lt;BR /&gt;Account_Det_ID,&lt;BR /&gt;FIRSTVALUE(BP) &lt;B&gt;as&lt;/B&gt; First_BP,&lt;BR /&gt;&lt;B&gt;FROM&lt;/B&gt; &lt;D&gt; (qvd)&lt;BR /&gt;&lt;B&gt;GROUP BY&lt;/B&gt; BP, CA, Account_Det_ID;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;The resulting table shows, for example:&lt;/P&gt;&lt;P&gt;BP CA Account_Det_ID&lt;BR /&gt;1234 5555 DU&lt;BR /&gt;1234 5555 DM&lt;BR /&gt;1234 6666 DM&lt;BR /&gt;5678 1111 DU&lt;BR /&gt;5678 2222 DU&lt;/P&gt;&lt;P&gt;For the purposes of the result, I need to show only the first row of data, regardless what is on the following rows, where the BP number is the same. Hope this makes sense.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 17:49:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Value/m-p/217397#M70605</guid>
      <dc:creator>agsearle</dc:creator>
      <dc:date>2009-10-15T17:49:17Z</dc:date>
    </item>
    <item>
      <title>First Value?</title>
      <link>https://community.qlik.com/t5/QlikView/First-Value/m-p/217398#M70606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all you should remove the comma before the "FROM" and after the "as First_BP" if it's also in your script.&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Joachim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 17:55:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Value/m-p/217398#M70606</guid>
      <dc:creator>biester</dc:creator>
      <dc:date>2009-10-15T17:55:29Z</dc:date>
    </item>
    <item>
      <title>First Value?</title>
      <link>https://community.qlik.com/t5/QlikView/First-Value/m-p/217399#M70607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well spotted, but yes that's not in the original script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 18:00:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Value/m-p/217399#M70607</guid>
      <dc:creator>agsearle</dc:creator>
      <dc:date>2009-10-15T18:00:22Z</dc:date>
    </item>
    <item>
      <title>First Value?</title>
      <link>https://community.qlik.com/t5/QlikView/First-Value/m-p/217400#M70608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean firstsortedvalue?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 18:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Value/m-p/217400#M70608</guid>
      <dc:creator />
      <dc:date>2009-10-15T18:26:47Z</dc:date>
    </item>
    <item>
      <title>First Value?</title>
      <link>https://community.qlik.com/t5/QlikView/First-Value/m-p/217401#M70609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know, would that work better in this situation? I understand that this only returns numeric values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 18:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Value/m-p/217401#M70609</guid>
      <dc:creator>agsearle</dc:creator>
      <dc:date>2009-10-15T18:31:52Z</dc:date>
    </item>
    <item>
      <title>First Value?</title>
      <link>https://community.qlik.com/t5/QlikView/First-Value/m-p/217402#M70610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean with not working? The FirstValue should work in any case and deliver something. Is the result Null or something else? The GROUP BY already implements a certain sorting - you may overrule this by adding ORDER BY.&lt;/P&gt;&lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 19:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Value/m-p/217402#M70610</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-10-15T19:21:27Z</dc:date>
    </item>
    <item>
      <title>First Value?</title>
      <link>https://community.qlik.com/t5/QlikView/First-Value/m-p/217403#M70611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data returned, is exactly as the same as it is in the source document. My understanding of FIRSTVALUE, means in this case, it would only show the first row of data of each BP?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 19:56:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Value/m-p/217403#M70611</guid>
      <dc:creator>agsearle</dc:creator>
      <dc:date>2009-10-15T19:56:17Z</dc:date>
    </item>
    <item>
      <title>First Value?</title>
      <link>https://community.qlik.com/t5/QlikView/First-Value/m-p/217404#M70612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FirstValue() can be only &lt;B&gt;one&lt;/B&gt; value, which then is repeated over all records, it does not change with the fields indicated as GROUP BY&lt;/P&gt;&lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 00:49:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Value/m-p/217404#M70612</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-10-16T00:49:29Z</dc:date>
    </item>
    <item>
      <title>First Value?</title>
      <link>https://community.qlik.com/t5/QlikView/First-Value/m-p/217405#M70613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;&lt;BR /&gt;TMP_TAB:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;BP, CA, Account_Det_ID&lt;BR /&gt;1234, 5555, DU&lt;BR /&gt;1234, 5555, DM&lt;BR /&gt;1234, 6666, DM&lt;BR /&gt;5678, 1111, DU&lt;BR /&gt;5678, 2222, DU&lt;BR /&gt;];&lt;BR /&gt;TMP_TAB1:&lt;BR /&gt;LOAD&lt;BR /&gt;ROWNO() AS NO,&lt;BR /&gt;BP,&lt;BR /&gt;CA,&lt;BR /&gt;Account_Det_ID&lt;BR /&gt;RESIDENT TMP_TAB&lt;BR /&gt;ORDER BY BP, CA, Account_Det_ID;&lt;BR /&gt;&lt;BR /&gt;DROP TABLE TMP_TAB;&lt;BR /&gt;TAB1:&lt;BR /&gt;LOAD&lt;BR /&gt;*,&lt;BR /&gt;BP as First_BP&lt;BR /&gt;RESIDENT TMP_TAB1&lt;BR /&gt;WHERE NO =1;&lt;BR /&gt;DROP TABLE TMP_TAB1;&lt;BR /&gt;DROP FIELD NO FROM TAB1;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 01:32:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Value/m-p/217405#M70613</guid>
      <dc:creator />
      <dc:date>2009-10-16T01:32:23Z</dc:date>
    </item>
    <item>
      <title>First Value?</title>
      <link>https://community.qlik.com/t5/QlikView/First-Value/m-p/217406#M70614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Fernando, I can see what you are trying to do, but all this does is put the data in order and give row numbers. The final table then returns only the first row of ALL the data, rather than the first row of each occurance of the BP, which is what I'm after.&lt;/P&gt;&lt;P&gt;How can you get the row numbers to restart each time it finds a different BP, like:&lt;/P&gt;&lt;P&gt;No BP CA Account_Det_ID&lt;BR /&gt;1 1234 5555 DU&lt;BR /&gt;2 1234 5555 DM&lt;BR /&gt;3 1234 6666 DM&lt;BR /&gt;1 5678 1111 DU&lt;BR /&gt;2 5678 2222 DU&lt;BR /&gt;&lt;BR /&gt;I can then select all the 1's in the No column to get the data I'm after.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 15:37:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Value/m-p/217406#M70614</guid>
      <dc:creator>agsearle</dc:creator>
      <dc:date>2009-10-16T15:37:38Z</dc:date>
    </item>
    <item>
      <title>First Value?</title>
      <link>https://community.qlik.com/t5/QlikView/First-Value/m-p/217407#M70615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you should use peek() or previous().&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Joachim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 16:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Value/m-p/217407#M70615</guid>
      <dc:creator>biester</dc:creator>
      <dc:date>2009-10-16T16:02:43Z</dc:date>
    </item>
    <item>
      <title>First Value?</title>
      <link>https://community.qlik.com/t5/QlikView/First-Value/m-p/217408#M70616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm fairly new to Qlikview, so how would I use these in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 16:10:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Value/m-p/217408#M70616</guid>
      <dc:creator>agsearle</dc:creator>
      <dc:date>2009-10-16T16:10:28Z</dc:date>
    </item>
    <item>
      <title>First Value?</title>
      <link>https://community.qlik.com/t5/QlikView/First-Value/m-p/217409#M70617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Find enclosed a hopefully self explaining little demo. Perhaps that helps.&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Joachim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 16:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Value/m-p/217409#M70617</guid>
      <dc:creator>biester</dc:creator>
      <dc:date>2009-10-16T16:39:27Z</dc:date>
    </item>
    <item>
      <title>First Value?</title>
      <link>https://community.qlik.com/t5/QlikView/First-Value/m-p/217410#M70618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that Joachim, exactly what I wanted! &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2009 17:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Value/m-p/217410#M70618</guid>
      <dc:creator>agsearle</dc:creator>
      <dc:date>2009-10-16T17:43:16Z</dc:date>
    </item>
    <item>
      <title>First Value?</title>
      <link>https://community.qlik.com/t5/QlikView/First-Value/m-p/217411#M70619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I read your requirements correctly, you want to see:&lt;/P&gt;&lt;P&gt;BP CA Acct...&lt;/P&gt;&lt;P&gt;1234 5555 DU&lt;/P&gt;&lt;P&gt;5678 1111 DU&lt;/P&gt;&lt;P&gt;IF so, shouldn't you then apply the FirstValue function to the CA and Account_Det_ID fields and remove them from the Group By so it is only grouping on BP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 10:38:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Value/m-p/217411#M70619</guid>
      <dc:creator>michael_anthony</dc:creator>
      <dc:date>2009-11-09T10:38:18Z</dc:date>
    </item>
    <item>
      <title>First Value?</title>
      <link>https://community.qlik.com/t5/QlikView/First-Value/m-p/217412#M70620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Michael Anthony wrote:&lt;BR /&gt;If I read your requirements correctly, you want to see:&lt;BR /&gt;BP CA Acct...&lt;BR /&gt;1234 5555 DU&lt;BR /&gt;5678 1111 DU&lt;BR /&gt;IF so, shouldn't you then apply the FirstValue function to the CA and Account_Det_ID fields and remove them from the Group By so it is only grouping on BP. &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;/PRE&gt;i have a similar issue, how would one accomplish what you had clarified &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BP CA Accct&lt;/P&gt;&lt;P&gt;1234 555 DU&lt;/P&gt;&lt;P&gt;5678 111 DU&lt;/P&gt;&lt;P&gt;please see my concern at the below link too. thanks&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/forums/t/44695.aspx"&gt;http://community.qlik.com/forums/t/44695.aspx&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2011 21:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Value/m-p/217412#M70620</guid>
      <dc:creator />
      <dc:date>2011-04-21T21:55:13Z</dc:date>
    </item>
  </channel>
</rss>

