<?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: Getting a query to load top rows in qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-a-query-to-load-top-rows-in-qlikview/m-p/358931#M574646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Aug 2016 09:17:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-08-23T09:17:38Z</dc:date>
    <item>
      <title>Getting a query to load top rows in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-query-to-load-top-rows-in-qlikview/m-p/358929#M574644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a query that I would like to use to load data into qlikview with.&amp;nbsp; It goes something like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;SPAN style="color: blue;"&gt;top&lt;/SPAN&gt; 1 MessageData&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;value&lt;SPAN style="color: gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: red;"&gt;'(/LogObject//Message)[1]'&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: red;"&gt;'nvarchar(50)'&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;from&lt;/SPAN&gt; dbo&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;ApplicationLog&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt;"&gt; AppCode &lt;SPAN style="color: gray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: red;"&gt;'CodaReportingService'&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: gray; font-family: 'Courier New'; font-size: 10pt;"&gt;and &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt;"&gt;MessageData&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;value&lt;SPAN style="color: gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: red;"&gt;'(/LogObject//Message)[1]'&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: red;"&gt;'nvarchar(50)'&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: gray;"&gt;like&lt;/SPAN&gt; &lt;SPAN style="color: red;"&gt;'%*Year:2012%Period:3*%';&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: red; font-size: 10pt; font-family: 'Courier New';"&gt;I've tried parts of it and can just load message data.&amp;nbsp; Do you know how I would get this query to work?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: red; font-size: 10pt; font-family: 'Courier New';"&gt;I might be able to do a simple work around.&amp;nbsp; I need to know how do I load just the top 10 or 1 rows of the select statement?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: red; font-size: 10pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2012 14:38:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-query-to-load-top-rows-in-qlikview/m-p/358929#M574644</guid>
      <dc:creator />
      <dc:date>2012-05-18T14:38:18Z</dc:date>
    </item>
    <item>
      <title>Getting a query to load top rows in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-query-to-load-top-rows-in-qlikview/m-p/358930#M574645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried the FIRST prefix? From the Help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;SPAN class="Bold"&gt;first&lt;/SPAN&gt; prefix to a &lt;A class="MCXref_0"&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/A&gt; or &lt;A class="MCXref_0"&gt;&lt;EM&gt;Select (SQL)&lt;/EM&gt;&lt;/A&gt; statement is used for loading just a set maximum number of records from the data source, regardless of its length. &lt;/P&gt;&lt;P&gt;The syntax is:&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;first &lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;n( loadstatement | selectstatement )&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;where:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;n&lt;/SPAN&gt; is an arbitrary expressing which evaluates to an integer indicating the maximum number of records to be read. &lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P class="Code"&gt;First 10 Load * from abc.csv;&lt;/P&gt;&lt;P class="Code"&gt;First (1) Select * from Orders; (Note: The parenthesis is allowed but not required.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2012 14:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-query-to-load-top-rows-in-qlikview/m-p/358930#M574645</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-05-18T14:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a query to load top rows in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-query-to-load-top-rows-in-qlikview/m-p/358931#M574646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 09:17:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-query-to-load-top-rows-in-qlikview/m-p/358931#M574646</guid>
      <dc:creator />
      <dc:date>2016-08-23T09:17:38Z</dc:date>
    </item>
  </channel>
</rss>

