<?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: Script: Inter-record comparison of values. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-Inter-record-comparison-of-values/m-p/1322092#M840399</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a new feature, but only works on resident tables as far as I know. RecNo() represents the peek row of the next record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;X&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; X,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; peek('X', recno(), 'data') as Y&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT data;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 May 2017 23:03:53 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2017-05-10T23:03:53Z</dc:date>
    <item>
      <title>Script: Inter-record comparison of values.</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Inter-record-comparison-of-values/m-p/1322089#M840396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with hierarchies. I now wanted to add one additional column &lt;SPAN style="font-size: 10pt;"&gt;to data that is linked to a hierarchy. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Unfortunately QlikView adds the &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;additional values to too many values in the existing columns.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached a table preview to make it more clear. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only want to assign the value "Scope Q2" to the last instance of &lt;SPAN style="font-size: 10pt;"&gt;204074-01 (with the hierarchy key G2).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to check the next value in the field "Management ID" and only assign the value "Scope Q2"&lt;/P&gt;&lt;P&gt;to the row if the next Management ID is different?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mats&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Inter-record-comparison-of-values/m-p/1322089#M840396</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Script: Inter-record comparison of values.</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Inter-record-comparison-of-values/m-p/1322090#M840397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the peek() script function to look ahead or back in records when loading. See the Help for info about peek(). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 22:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Inter-record-comparison-of-values/m-p/1322090#M840397</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-05-10T22:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Script: Inter-record comparison of values.</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Inter-record-comparison-of-values/m-p/1322091#M840398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how would you use Peek() to address the next record to be read in? Is this a new feature? Haven't seen this so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 22:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Inter-record-comparison-of-values/m-p/1322091#M840398</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-10T22:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Script: Inter-record comparison of values.</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Inter-record-comparison-of-values/m-p/1322092#M840399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a new feature, but only works on resident tables as far as I know. RecNo() represents the peek row of the next record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;X&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;B&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; X,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; peek('X', recno(), 'data') as Y&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT data;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 23:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Inter-record-comparison-of-values/m-p/1322092#M840399</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-05-10T23:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Script: Inter-record comparison of values.</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Inter-record-comparison-of-values/m-p/1322093#M840400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, you are talking about peek'ing a resident table, that's what I missed.&lt;/P&gt;&lt;P&gt;Thought you have found a way to peek the next record from an input table that's currently loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for clarification.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 23:11:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Inter-record-comparison-of-values/m-p/1322093#M840400</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-10T23:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Script: Inter-record comparison of values.</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Inter-record-comparison-of-values/m-p/1322094#M840401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It took me a while but I figured out how to use it in my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you Rob!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 19:32:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Inter-record-comparison-of-values/m-p/1322094#M840401</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T19:32:52Z</dc:date>
    </item>
  </channel>
</rss>

