<?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 What are inter record functions in qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/What-are-inter-record-functions-in-qlikview/m-p/633672#M1094243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one explain me about the Inter record functions in qlikview.&lt;/P&gt;&lt;P&gt;Thnaks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2014 17:48:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-14T17:48:18Z</dc:date>
    <item>
      <title>What are inter record functions in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/What-are-inter-record-functions-in-qlikview/m-p/633672#M1094243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one explain me about the Inter record functions in qlikview.&lt;/P&gt;&lt;P&gt;Thnaks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 17:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-are-inter-record-functions-in-qlikview/m-p/633672#M1094243</guid>
      <dc:creator />
      <dc:date>2014-05-14T17:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: What are inter record functions in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/What-are-inter-record-functions-in-qlikview/m-p/633673#M1094244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably know the reference manual and QlikView Help file (just hit F1 in the desktop):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H1&gt;&lt;A name="kanchor45"&gt;&lt;/A&gt;Inter Record Functions&lt;/H1&gt;&lt;P&gt;These functions are used when a value from previously loaded records of data is needed for the evaluation of the current record. &lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor46"&gt;&lt;/A&gt;&lt;A name="exists"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;exists(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;field [ , expression ] &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Determines whether a specific field value exists in a specified field of the data loaded so far. &lt;SPAN class="Italic"&gt;Field&lt;/SPAN&gt; is a name or a string expression evaluating to a field name. The field must exist in the data loaded so far by the script. &lt;SPAN class="Italic"&gt;Expr&lt;/SPAN&gt; is an expression evaluating to the field value to look for in the specified field. If omitted, the current record’s value in the specified field will be assumed. &lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;exists(Month, 'Jan')&lt;/SPAN&gt; returns -1 (true) if the field value &lt;SPAN class="Italic"&gt;'Jan'&lt;/SPAN&gt; is found in the current content of the field &lt;SPAN class="Italic"&gt;Month&lt;/SPAN&gt;. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;exists(IDnr, IDnr)&lt;/SPAN&gt; returns -1 (true) if the value of the field IDnr in the current record already exists in any previously read record containing that field. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;exists (IDnr)&lt;/SPAN&gt; is identical to the previous example. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;Load Employee, ID, Salary from Employees.csv; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="Code"&gt;Load FirstName&amp;amp; ' ' &amp;amp;LastName as Employee, Comment from Citizens.csv where exists (Employee, FirstName&amp;amp; ' ' &amp;amp;LastName);&lt;/SPAN&gt; &lt;BR /&gt;Only comments regarding those citizens who are employees are read. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;Load A, B, C, from Employees.csv where not exists (A);&lt;/SPAN&gt; &lt;BR /&gt;This is equivalent to performing a distinct load on field A. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor47"&gt;&lt;/A&gt;&lt;A name="previous"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;previous(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;expression &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Returns the value of &lt;SPAN class="Italic"&gt;expression&lt;/SPAN&gt; using data from the previous input record. In the first record of an internal table the function will return NULL. The &lt;SPAN class="Bold"&gt;previous&lt;/SPAN&gt; function may be nested in order to access records further back. Data are fetched directly from the input source, making it possible to refer also to fields which have not been loaded into QlikView, i.e. even if they have not been stored in its associative database. &lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P class="Code" style="margin-left: 40px;"&gt;Load *, Sales / previous(Sales) as Increase from ...;&lt;/P&gt;&lt;P class="Code" style="margin-left: 40px;"&gt;Load A, previous(previous( A )) as B from ...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor48"&gt;&lt;/A&gt;&lt;A name="peek"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;peek(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;fieldname [ , row [ , tablename ] ] &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Returns the contents of the &lt;SPAN class="Italic"&gt;fieldname&lt;/SPAN&gt; in the record specified by &lt;SPAN class="Italic"&gt;row&lt;/SPAN&gt; in the internal table &lt;SPAN class="Italic"&gt;tablename&lt;/SPAN&gt;. Data are fetched from the associative QlikView database. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Fieldname&lt;/SPAN&gt; must be given as a string (e.g. a quoted literal). &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Row&lt;/SPAN&gt; must be an integer. 0 denotes the first record, 1 the second and so on. Negative numbers indicate order from the end of the table. -1 denotes the last record read. &lt;/P&gt;&lt;P&gt;If no &lt;SPAN class="Italic"&gt;row&lt;/SPAN&gt; is stated, -1 is assumed. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Tablename&lt;/SPAN&gt; is a table label, see &lt;A class="MCXref_0"&gt;&lt;EM&gt;Table Labels&lt;/EM&gt;&lt;/A&gt;, without the ending colon. If no &lt;SPAN class="Italic"&gt;tablename&lt;/SPAN&gt; is stated, the current table is assumed. If used outside the load statement or referring to another table, the tablename must be included. &lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;peek( 'Sales' )&lt;/SPAN&gt; &lt;BR /&gt;returns the value of &lt;SPAN class="Italic"&gt;Sales&lt;/SPAN&gt; in the previous record read ( equivalent to &lt;SPAN class="Bold"&gt;previous(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;Sales&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;) &lt;/SPAN&gt;). &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;peek( 'Sales', 2 )&lt;/SPAN&gt; &lt;BR /&gt;returns the value of &lt;SPAN class="Italic"&gt;Sales&lt;/SPAN&gt; from the third record read from the current internal table. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;peek( 'Sales', -2 )&lt;/SPAN&gt; &lt;BR /&gt;returns the value of &lt;SPAN class="Italic"&gt;Sales&lt;/SPAN&gt; from the second last record read into the current internal table. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;peek( 'Sales', 0, 'Tab1' )&lt;/SPAN&gt; &lt;BR /&gt;returns the value of &lt;SPAN class="Italic"&gt;Sales&lt;/SPAN&gt; from the first record read into the input table labeled Tab1. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Code"&gt;Load A, B, numsum( B, peek( 'Bsum' ) ) as Bsum...;&lt;/SPAN&gt; &lt;BR /&gt;creates an accumulation of B in Bsum. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor49"&gt;&lt;/A&gt;&lt;A name="FieldValue"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;FieldValue(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;fieldname , n &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Returns the field value found in position &lt;SPAN class="Italic"&gt;n&lt;/SPAN&gt; of the field &lt;SPAN class="Italic"&gt;fieldname&lt;/SPAN&gt; (by load order). &lt;SPAN class="Italic"&gt;fieldname&lt;/SPAN&gt; must be given as a string value, e.g. the field name must be enclosed by single quotes. The first field value is returned for &lt;SPAN class="Italic"&gt;n&lt;/SPAN&gt;=1. If &lt;SPAN class="Italic"&gt;n&lt;/SPAN&gt; is larger than the number of field values, NULL is returned. &lt;/P&gt;&lt;P class="note"&gt;Note: This function will only work with distinct field values.&lt;/P&gt;&lt;P class="example"&gt;Example:&lt;/P&gt;&lt;P class="Code" style="margin-left: 40px;"&gt;FieldValue( 'HelpText', 5 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor50"&gt;&lt;/A&gt;&lt;A name="FieldIndex"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;FieldIndex(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;fieldname , value &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Returns the position of the field value &lt;SPAN class="Italic"&gt;value&lt;/SPAN&gt; found in the field &lt;SPAN class="Italic"&gt;fieldname&lt;/SPAN&gt; (by load order). If &lt;SPAN class="Italic"&gt;value&lt;/SPAN&gt; cannot be found among the field values, 0 is returned. &lt;SPAN class="Italic"&gt;fieldname&lt;/SPAN&gt; must be given as a string value, e.g. the field name must be enclosed by single quotes. &lt;/P&gt;&lt;P class="example"&gt;Example:&lt;/P&gt;&lt;P class="Code" style="margin-left: 40px;"&gt;FieldIndex( 'Name', 'John Doe' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor51"&gt;&lt;/A&gt;&lt;A name="lookup("&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;lookup(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;fieldname, matchfieldname, matchfieldvalue [, tablename]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Returns the value of &lt;SPAN class="Italic"&gt;fieldname&lt;/SPAN&gt; corresponding to the first occurrence of the value &lt;SPAN class="Italic"&gt;matchfieldvalue&lt;/SPAN&gt; in the field &lt;SPAN class="Italic"&gt;matchfieldname&lt;/SPAN&gt;. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Fieldname&lt;/SPAN&gt;, &lt;SPAN class="Italic"&gt;matchfieldname&lt;/SPAN&gt; and &lt;SPAN class="Italic"&gt;tablename&lt;/SPAN&gt; must be given as strings (e.g. quoted literals). &lt;/P&gt;&lt;P&gt;The search order is load order unless the table is the result of complex operations such as joins, in which case the order is not well defined. &lt;/P&gt;&lt;P&gt;Both &lt;SPAN class="Italic"&gt;fieldname&lt;/SPAN&gt; and &lt;SPAN class="Italic"&gt;matchfieldname&lt;/SPAN&gt; must be fields in the same table, specified by &lt;SPAN class="Italic"&gt;tablename&lt;/SPAN&gt;. If &lt;SPAN class="Italic"&gt;tablename&lt;/SPAN&gt; is omitted the current table is assumed. &lt;/P&gt;&lt;P&gt;If no match is found, null is returned. &lt;/P&gt;&lt;P class="example"&gt;Example:&lt;/P&gt;&lt;P class="Code" style="margin-left: 40px;"&gt;lookup('Price', 'ProductID', InvoicedProd, 'pricelist')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 17:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-are-inter-record-functions-in-qlikview/m-p/633673#M1094244</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-05-14T17:51:14Z</dc:date>
    </item>
  </channel>
</rss>

