<?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 new Id with peek() function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338693#M494772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Your condition is wrong change to this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(peek('storename')&amp;lt;&amp;gt;storename,1, peek('newId')+1 ) as newId&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Mar 2012 14:42:19 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2012-03-06T14:42:19Z</dc:date>
    <item>
      <title>new Id with peek() function</title>
      <link>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338691#M494770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;Hi Everybody,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;I try to create new Id for each store of my table:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;&lt;BR /&gt;I have:&lt;BR /&gt;storeid | storename | timestamp&lt;BR /&gt;3a | store3 | 01.01.2012&lt;BR /&gt;3b | store3 | 02.01.2012&lt;BR /&gt;3c | store3 | 03.01.2012&lt;BR /&gt;3d | store3 | 04.01.2012&lt;BR /&gt;7a | store7 | 01.01.2012&lt;BR /&gt;7b | store7 | 02.01.2012&lt;BR /&gt;7c | store7 | 03.01.2012&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;I need:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;storeid | storename | timestamp | newId&lt;BR /&gt;3a | store3 | 01.01.2012 | 1&lt;BR /&gt;3 b| store3 | 02.01.2012 | 2&lt;BR /&gt;3 c| store3 | 03.01.2012 | 3&lt;BR /&gt;3 d| store3 | 04.01.2012 | 4&lt;BR /&gt;7 a| store7 | 01.01.2012 | 1&lt;BR /&gt;7 b| store7 | 02.01.2012 | 2 &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;7 c| store7 | 03.01.2012 | 3&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;I use the peek() function to compare each store, if they not equal then newId+1 else 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;My Code look like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;tab1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;storeid,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;storename,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;...,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;...,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;from mytable;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;newId:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;Load&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;storeid,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;storename,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;If(peek('storename')&amp;lt;&amp;gt;storename, peek('newId')+1, 1 ) as newId&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;resident tab1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;My result is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;storeid | storename | timestamp | newId&lt;BR /&gt;3a | store3 | 01.01.2012 | -&lt;BR /&gt;3 b| store3 | 02.01.2012 | -&lt;BR /&gt;3 c| store3 | 03.01.2012 | -&lt;BR /&gt;3 d| store3 | 04.01.2012 | -&lt;BR /&gt;7 a| store7 | 01.01.2012 | -&lt;BR /&gt;7 b| store7 | 02.01.2012 | -&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;7 c| store7 | 03.01.2012 | -&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;When I just use the&amp;nbsp; peek() function on storename, like peek('storename'),&amp;nbsp; my result is empty... ???&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;What I do wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;Thx in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 14:25:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338691#M494770</guid>
      <dc:creator />
      <dc:date>2012-03-06T14:25:24Z</dc:date>
    </item>
    <item>
      <title>new Id with peek() function</title>
      <link>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338692#M494771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what version are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems to work quite fine in QV11:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tab1:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;storeid | storename | timestamp&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3a | store3 | 01.01.2012&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3b | store3 | 02.01.2012&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3c | store3 | 03.01.2012&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3d | store3 | 04.01.2012&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;7a | store7 | 01.01.2012&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;7b | store7 | 02.01.2012&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;7c | store7 | 03.01.2012&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;] (delimiter is '|');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;newId:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;storeid,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;storename,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If(peek('storename')=storename, peek('newId')+1, 1 ) as newId&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;resident tab1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table tab1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that I changed &amp;lt;&amp;gt; to equal sign = (I think that's what you logically need, but this won't explain the problem you have).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 14:36:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338692#M494771</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-06T14:36:16Z</dc:date>
    </item>
    <item>
      <title>new Id with peek() function</title>
      <link>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338693#M494772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Your condition is wrong change to this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(peek('storename')&amp;lt;&amp;gt;storename,1, peek('newId')+1 ) as newId&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 14:42:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338693#M494772</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-06T14:42:19Z</dc:date>
    </item>
    <item>
      <title>new Id with peek() function</title>
      <link>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338694#M494773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;swuehl schrieb:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what version are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems to work quite fine in QV11:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tab1:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;storeid | storename | timestamp&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3a | store3 | 01.01.2012&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3b | store3 | 02.01.2012&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3c | store3 | 03.01.2012&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3d | store3 | 04.01.2012&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;7a | store7 | 01.01.2012&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;7b | store7 | 02.01.2012&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;7c | store7 | 03.01.2012&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;] (delimiter is '|');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;newId:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;storeid,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;storename,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If(peek('storename')=storename, peek('newId')+1, 1 ) as newId&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;resident tab1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table tab1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that I changed &amp;lt;&amp;gt; to equal sign = (I think that's what you logically need, but this won't explain the problem you have).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using QV 10 and when I do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;storeid, store&lt;/P&gt;&lt;P&gt;3a, store3&lt;/P&gt;&lt;P&gt;3s, store3&lt;/P&gt;&lt;P&gt;3d, store3&lt;/P&gt;&lt;P&gt;3f, store3&lt;/P&gt;&lt;P&gt;7f, store7&lt;/P&gt;&lt;P&gt;7h, store7&lt;/P&gt;&lt;P&gt;7m, store7&lt;/P&gt;&lt;P&gt;7u, store7&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;storeid,&lt;/P&gt;&lt;P&gt;store,&lt;/P&gt;&lt;P&gt;IF (peek('store')=store,peek('counter')+1,1 ) AS counter,&lt;/P&gt;&lt;P&gt;peek('store') as Peek,&lt;/P&gt;&lt;P&gt;RESIDENT Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's fine too. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesn't work on my original table!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 14:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338694#M494773</guid>
      <dc:creator />
      <dc:date>2012-03-06T14:50:58Z</dc:date>
    </item>
    <item>
      <title>new Id with peek() function</title>
      <link>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338695#M494774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what's going on, seems that your original table differs from the example you posted above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides that, I would recommend using a sort with the resident load you create the newId,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;resident Tab1 order by storename, timestamp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the fields with appropriate sort order as needed to create your correct newID sequence order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, this won't explain why even peek('storename') doesn't return anything, so you need to recheck your original table and check that field names are correctly spelled etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 15:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338695#M494774</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-06T15:01:26Z</dc:date>
    </item>
    <item>
      <title>new Id with peek() function</title>
      <link>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338696#M494775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Without commenting on why your peek() is not working, I'd like to suggest that an easier way to generate the Ids is with AutoNumber()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;AutoNumber(RecNo(), storename) as NewId&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;-Rob&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.cin/" style="outline-style: none; color: #007fc0;"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 18:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338696#M494775</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-03-06T18:51:46Z</dc:date>
    </item>
    <item>
      <title>new Id with peek() function</title>
      <link>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338697#M494776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's a very neat use of the second parameter 'AutoID' to autonumber(), haven't seen that before. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Must remember that!&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>Tue, 06 Mar 2012 19:51:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338697#M494776</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-06T19:51:51Z</dc:date>
    </item>
    <item>
      <title>new Id with peek() function</title>
      <link>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338698#M494777</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;BR /&gt;thx for advice but its only bring me one step closer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My original table:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;storeid | storename | date | orderEtc&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;3a | store3 | 01.01.2012 | 1&lt;BR /&gt;3 b| store3 | 02.01.2012 | 2&lt;BR /&gt;3 c| store3 | 03.01.2012 | 3&lt;BR /&gt;3 d| store3 | 04.01.2012 | 4&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;3 g| store3 | 04.01.2012 | 5&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;7 a| store7 | 01.01.2012 | 2&lt;BR /&gt;7 b| store7 | 02.01.2012 | 3 &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;7 c| store7 | 03.01.2012 | 4&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My result now is: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;storeid | store | orderEtc&amp;nbsp; | newId&lt;BR /&gt;3a | store3 | 01.01.2012 | 1 | 1&lt;BR /&gt;3 b| store3 | 02.01.2012 | 2 |1&lt;BR /&gt;3 c| store3 | 03.01.2012 | 3 | 1&lt;BR /&gt;3 e| store3 | 04.01.2012 | 4| 1&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;3 f| store3 | 05.01.2012 |&amp;nbsp; 5| 1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;&lt;BR /&gt;3a | store3 | 01.01.2012 | 1 | 2&lt;BR /&gt;3 b| store3 | 02.01.2012 | 2 | 2&lt;BR /&gt;3 c| store3 | 03.01.2012 | 3 | 2&lt;BR /&gt;3 e| store3 | 04.01.2012 | 4|&amp;nbsp; 2&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;3 f| store3 | 05.01.2012 |&amp;nbsp; 5|&amp;nbsp; 2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt; &lt;/SPAN&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;3a | store3 | 01.01.2012 | 1 | 3&lt;BR /&gt;3 b| store3 | 02.01.2012 | 2 | 3&lt;BR /&gt;3 c| store3 | 03.01.2012 | 3 | 3&lt;BR /&gt;3 e| store3 | 04.01.2012 | 4|&amp;nbsp; 3&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;3 f| store3 | 05.01.2012 |&amp;nbsp; 5|&amp;nbsp; 3&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;3a | store3 | 01.01.2012 | 1 | 4&lt;BR /&gt;3 b| store3 | 02.01.2012 | 2 | 4&lt;BR /&gt;3 c| store3 | 03.01.2012 | 3 | 4&lt;BR /&gt;3 e| store3 | 04.01.2012 | 4|&amp;nbsp; 4&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;3 f| store3 | 05.01.2012 |&amp;nbsp; 5|&amp;nbsp; 4&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt; &lt;/SPAN&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;3a | store3 | 01.01.2012 | 1 | 5&lt;BR /&gt;3 b| store3 | 02.01.2012 | 2 | 5&lt;BR /&gt;3 c| store3 | 03.01.2012 | 3 | 5&lt;BR /&gt;3 e| store3 | 04.01.2012 | 4|&amp;nbsp; 5&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;3 f| store3 | 05.01.2012 |&amp;nbsp; 5|&amp;nbsp; 5&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;It looks like I get for every OrderNumber a new ID &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;But I need a new ID for every store!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;I want:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;storeid | storename | date | orderEtc | newId&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;3a | store3 | 01.01.2012 | 1 | 1&lt;BR /&gt;3 b| store3 | 02.01.2012 | 2 | 2&lt;BR /&gt;3 c| store3 | 03.01.2012 | 3 | 3&lt;BR /&gt;3 d| store3 | 04.01.2012 | 4 | 4&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;3 g| store3 | 04.01.2012 | 5 | 5&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;7 a| store7 | 01.01.2012 | 1 | 1&lt;BR /&gt;7 b| store7 | 02.01.2012 | 2 | 2&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; font-size: 12pt;"&gt;&lt;SPAN id="_ctl5_ctlTopic"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar"&gt;&lt;SPAN id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl10_lblFullMessage"&gt;7 c| store7 | 03.01.2012 | 3 | 3&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THX!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 14:46:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338698#M494777</guid>
      <dc:creator />
      <dc:date>2012-03-07T14:46:40Z</dc:date>
    </item>
    <item>
      <title>new Id with peek() function</title>
      <link>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338699#M494778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do get your requested table output when using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tab:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;storeid | storename | date | orderEtc&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3a | store3 | 01.01.2012 | 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3 b| store3 | 02.01.2012 | 2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3 c| store3 | 03.01.2012 | 3&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3 d| store3 | 04.01.2012 | 4&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3 g| store3 | 04.01.2012 | 5&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;7 a| store7 | 01.01.2012 | 2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;7 b| store7 | 02.01.2012 | 3&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;7 c| store7 | 03.01.2012 | 4&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;] (delimiter is '|');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Tab2:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;storeid,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;storename,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;date, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;orderEtc,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AutoNumber(recno(), storename) as newID&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident tab;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table tab;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure why you get this bloated table, seems like an outer join to me, could you post your script or at best a small sample file?&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 15:28:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338699#M494778</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-07T15:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: new Id with peek() function</title>
      <link>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338700#M494779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;I like the AutoNumber method, but encountered a performance issue: When I use AutoNumber() instead of Peek() the script execution time increases significantly. Would you mind checking the attached qvw? (= small extract of my data ... the original qvd contains about 10 Million records, that's why the difference really matters).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, I could stick to the Peek() function ... but: I need to create an additional ID that would require another order by clause. Using Peek(), I would have to do an extra resident load. With AutoNumber() I could do that at once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 10:44:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338700#M494779</guid>
      <dc:creator>pennetzdorfer</dc:creator>
      <dc:date>2013-09-12T10:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: new Id with peek() function</title>
      <link>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338701#M494780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Forian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also seen the performance penalty when using a significant amount of autonumber buckets (named counters).&lt;/P&gt;&lt;P&gt;You are using some 12539 named counters in your sample (and probably much more in your real data (one for each order no).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe QV has an increasingly hard work to organize the autonumbered values, since AFAIR, QV does handle autonumber'ed values differently from other loaded value (it's calculating the autonumber value implicitely from the value position in the attribute vector or something like this).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also fall back to peek() when I encouter this performance issue, autonumber seems to be fine with a small amount of named counters, though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 11:42:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338701#M494780</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-12T11:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: new Id with peek() function</title>
      <link>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338702#M494781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All right, thanks for explaining! Good to know ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 12:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338702#M494781</guid>
      <dc:creator>pennetzdorfer</dc:creator>
      <dc:date>2013-09-12T12:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: new Id with peek() function</title>
      <link>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338703#M494782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You use &lt;/P&gt;&lt;P&gt;&amp;nbsp; peek('newId')+1&lt;/P&gt;&lt;P&gt;in your formula, but this will not work since Peek() returns NULL in the first record. Try&lt;/P&gt;&lt;P&gt;&amp;nbsp; RangeSum(Peek('newId'),1)&lt;/P&gt;&lt;P&gt;instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 17:23:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/new-Id-with-peek-function/m-p/338703#M494782</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-09-12T17:23:36Z</dc:date>
    </item>
  </channel>
</rss>

