<?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 Selecting top record? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-top-record/m-p/397495#M148049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I want to create a variable and set it to a value in a column in a table I am importing, and all the values in this column are the same, so all I would need is the top row's value. In SQL it would be like SELECT TOP 1 @variablename = columnname from tablename. Can anyone show how I would do this in qlikview? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Apr 2013 19:11:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-24T19:11:10Z</dc:date>
    <item>
      <title>Selecting top record?</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-top-record/m-p/397495#M148049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I want to create a variable and set it to a value in a column in a table I am importing, and all the values in this column are the same, so all I would need is the top row's value. In SQL it would be like SELECT TOP 1 @variablename = columnname from tablename. Can anyone show how I would do this in qlikview? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 19:11:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-top-record/m-p/397495#M148049</guid>
      <dc:creator />
      <dc:date>2013-04-24T19:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting top record?</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-top-record/m-p/397496#M148050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you know how to do it in SQL, create the variable in the SQL load table in the script, rather than doing it dynamically - it saves processing time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have to do it in Qlikview I would use if(RowNo()=1,Variable).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 20:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-top-record/m-p/397496#M148050</guid>
      <dc:creator />
      <dc:date>2013-04-24T20:52:05Z</dc:date>
    </item>
  </channel>
</rss>

