<?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 Autonumber in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Autonumber-in-expression/m-p/336272#M494879</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use similar approach, however that would only work when the names are sorted.&lt;/P&gt;&lt;P&gt;I can't think of a possible workaround at the moment (without having the names sorted).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Przemek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Mar 2012 15:25:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-05T15:25:51Z</dc:date>
    <item>
      <title>Autonumber in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Autonumber-in-expression/m-p/336269#M494875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;within an expression I need to autonumerate rows in a way that new Name restarts counter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name, Number&lt;/P&gt;&lt;P&gt;John, 1&lt;/P&gt;&lt;P&gt;John, 2&lt;/P&gt;&lt;P&gt;Mary, 1&lt;/P&gt;&lt;P&gt;John, 3&lt;/P&gt;&lt;P&gt;Mary, 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Przemek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 14:51:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autonumber-in-expression/m-p/336269#M494875</guid>
      <dc:creator />
      <dc:date>2012-03-05T14:51:28Z</dc:date>
    </item>
    <item>
      <title>Autonumber in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Autonumber-in-expression/m-p/336270#M494876</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;use the example code below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;name&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;Mary&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;Mary&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Przemek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;name,&lt;/P&gt;&lt;P&gt;IF (peek('name')&amp;lt;&amp;gt;name,1, peek('counter')+1) AS counter&lt;/P&gt;&lt;P&gt;RESIDENT Temp1&lt;/P&gt;&lt;P&gt;order by name;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Temp1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 15:17:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autonumber-in-expression/m-p/336270#M494876</guid>
      <dc:creator />
      <dc:date>2012-03-05T15:17:20Z</dc:date>
    </item>
    <item>
      <title>Autonumber in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Autonumber-in-expression/m-p/336271#M494878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Przemek &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the reply. The problem, however, is that I need to have it built within an expression not script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Przemek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 15:21:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autonumber-in-expression/m-p/336271#M494878</guid>
      <dc:creator />
      <dc:date>2012-03-05T15:21:32Z</dc:date>
    </item>
    <item>
      <title>Autonumber in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Autonumber-in-expression/m-p/336272#M494879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use similar approach, however that would only work when the names are sorted.&lt;/P&gt;&lt;P&gt;I can't think of a possible workaround at the moment (without having the names sorted).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Przemek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 15:25:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autonumber-in-expression/m-p/336272#M494879</guid>
      <dc:creator />
      <dc:date>2012-03-05T15:25:51Z</dc:date>
    </item>
  </channel>
</rss>

