<?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: Select first value only in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-first-value-only/m-p/632855#M677868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This only loads one row. I'm interested in loading the first row for each of several account numbers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 May 2014 17:20:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-29T17:20:41Z</dc:date>
    <item>
      <title>Select first value only</title>
      <link>https://community.qlik.com/t5/QlikView/Select-first-value-only/m-p/632851#M677863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my script I have defined a table that loads in fields called account_nbr and production_date. I am limiting these field values that are loaded in by only loading in those where another field equals a certain value. This is what it looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;account_nbr&lt;/P&gt;&lt;P&gt;production_date&lt;/P&gt;&lt;P&gt;Resident Table1&lt;/P&gt;&lt;P&gt;where fieldName = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is to only load the first row for each account_nbr where fieldName = 1. Is this possible? Right now I am getting multiple rows loaded for each account_nbr since fieldName = 1 for more than one production_date. To put it more simply, I am only interested in loading the account_nbr and production_date values where the fieldName = 1 for the first time, and nothing after that. Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 17:06:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-first-value-only/m-p/632851#M677863</guid>
      <dc:creator />
      <dc:date>2014-05-29T17:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select first value only</title>
      <link>https://community.qlik.com/t5/QlikView/Select-first-value-only/m-p/632852#M677864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried where exists()?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 17:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-first-value-only/m-p/632852#M677864</guid>
      <dc:creator>Greg_Williams</dc:creator>
      <dc:date>2014-05-29T17:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select first value only</title>
      <link>https://community.qlik.com/t5/QlikView/Select-first-value-only/m-p/632853#M677865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try putting First 1 above the load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 17:18:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-first-value-only/m-p/632853#M677865</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2014-05-29T17:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Select first value only</title>
      <link>https://community.qlik.com/t5/QlikView/Select-first-value-only/m-p/632854#M677866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How would this only select the top row for each account_nbr?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 17:18:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-first-value-only/m-p/632854#M677866</guid>
      <dc:creator />
      <dc:date>2014-05-29T17:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select first value only</title>
      <link>https://community.qlik.com/t5/QlikView/Select-first-value-only/m-p/632855#M677868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This only loads one row. I'm interested in loading the first row for each of several account numbers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 17:20:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-first-value-only/m-p/632855#M677868</guid>
      <dc:creator />
      <dc:date>2014-05-29T17:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Select first value only</title>
      <link>https://community.qlik.com/t5/QlikView/Select-first-value-only/m-p/632856#M677869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with (in bold the most important piece of code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table:&lt;/P&gt;&lt;P&gt;load rowno() as id, * inline [&lt;/P&gt;&lt;P&gt;account_nbr, production_date, fieldName&lt;/P&gt;&lt;P&gt;1,11,0&lt;/P&gt;&lt;P&gt;1,2,0&lt;/P&gt;&lt;P&gt;1,31,1&lt;/P&gt;&lt;P&gt;1,4,1&lt;/P&gt;&lt;P&gt;1,5,0&lt;/P&gt;&lt;P&gt;2,61,0&lt;/P&gt;&lt;P&gt;2,7,1&lt;/P&gt;&lt;P&gt;2,8,1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;final:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;Resident table&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where fieldName = 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and peek(account_nbr) &amp;lt;&amp;gt; account_nbr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;order by account_nbr, id;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: if you want the first by date, order by date instead of id&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 17:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-first-value-only/m-p/632856#M677869</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-05-29T17:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Select first value only</title>
      <link>https://community.qlik.com/t5/QlikView/Select-first-value-only/m-p/632857#M677871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Table2:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;account_nbr&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;first(production_date) as production_date&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident Table1&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where fieldName = 1&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group by account_nbr;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 19:15:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-first-value-only/m-p/632857#M677871</guid>
      <dc:creator>eduardo_sommer</dc:creator>
      <dc:date>2014-05-29T19:15:24Z</dc:date>
    </item>
  </channel>
</rss>

