<?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: Re: Create Sequence Number in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-Sequence-Number/m-p/783095#M277276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. You are correct. Sorry for giving an incorrect expression. Peek does not work in chart expressions. You should use 'Above' instead. An example is attached. Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Dec 2014 02:41:42 GMT</pubDate>
    <dc:creator>nagaiank</dc:creator>
    <dc:date>2014-12-08T02:41:42Z</dc:date>
    <item>
      <title>Create Sequence Number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Sequence-Number/m-p/783086#M277267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to add a grouped sequence number in the QlikView straight table and need some help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the column A to F shown in the dimensions of a straight table and want to add a running sequence number expression that groups on only column A to C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the attached excel where I have manually added the sequence column. This column should not be there and should be generated in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help. Thx!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 10:04:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Sequence-Number/m-p/783086#M277267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-05T10:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create Sequence Number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Sequence-Number/m-p/783087#M277268</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;Try below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AutoNumber(rowno(),SAC.RouteDay) as Sequence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 10:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Sequence-Number/m-p/783087#M277268</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2014-12-05T10:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create Sequence Number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Sequence-Number/m-p/783088#M277269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the script, try like:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumber(RowNo(),WeekDayNo) as Sequence&lt;/P&gt;&lt;P&gt;From &amp;lt;&amp;gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 10:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Sequence-Number/m-p/783088#M277269</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-12-05T10:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create Sequence Number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Sequence-Number/m-p/783089#M277270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load *,AutoNumber(RecNo(),SAC.AddressNumberSalesStaff&amp;amp;WeekNo&amp;amp;WeekDayNo) As NewSeq;&lt;/P&gt;&lt;P&gt;LOAD SAC.AddressNumberSalesStaff, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekNo, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekDayNo, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAC.AddressNumberCustomer, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAC.CustomerName, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAC.RouteDay, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sequence&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Sheet1$);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 10:18:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Sequence-Number/m-p/783089#M277270</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-12-05T10:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create Sequence Number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Sequence-Number/m-p/783090#M277271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try to add like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AutoNumber(rowno(),SAC.RouteDay) as Sequence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AutoNumber(rowno(),WeekDayNo&amp;amp;SAC.RouteDay) as Sequence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 10:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Sequence-Number/m-p/783090#M277271</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-12-05T10:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create Sequence Number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Sequence-Number/m-p/783091#M277272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LOAD *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumber(RecNo(),AutonumberHash128(SAC.AddressNumberSalesStaff,WeekNo,WeekDayNo)) as Sequence&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FROM yoursource;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 10:26:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Sequence-Number/m-p/783091#M277272</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-12-05T10:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create Sequence Number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Sequence-Number/m-p/783092#M277273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx all for the script! It works but I would like to be done in the expression of a straight table and there does not seem to have Autonumber function in expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need it done in the expression because the user may filter the result and the expression can dynamically generate the sequence number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can advise further anyone?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 01:17:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Sequence-Number/m-p/783092#M277273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-08T01:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create Sequence Number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Sequence-Number/m-p/783093#M277274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following script also works. If you want to implement Seq as chart expression, remove the preceding load in the script, sort the straight table by ID ascending and use the expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.6000003814697px;"&gt;If(Peek(SAC.RouteDay)=SAC.RouteDay,Peek(Seq)+1,1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.6000003814697px;"&gt;for your new sequence number column.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD *,If(Peek(SAC.RouteDay)=SAC.RouteDay,Peek(Seq)+1,1) as Seq;&lt;/P&gt;&lt;P&gt;LOAD SAC.AddressNumberSalesStaff,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekNo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekDayNo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAC.AddressNumberCustomer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAC.CustomerName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAC.RouteDay,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sequence,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RecNo() as ID&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Sheet1$);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 01:40:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Sequence-Number/m-p/783093#M277274</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2014-12-08T01:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create Sequence Number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Sequence-Number/m-p/783094#M277275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NagaianK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just tried in expression but Peek does not seem to be recognized in expression. Are you able to provide an example in qlikview?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 01:50:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Sequence-Number/m-p/783094#M277275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-08T01:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Create Sequence Number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Sequence-Number/m-p/783095#M277276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. You are correct. Sorry for giving an incorrect expression. Peek does not work in chart expressions. You should use 'Above' instead. An example is attached. Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 02:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Sequence-Number/m-p/783095#M277276</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2014-12-08T02:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create Sequence Number</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Sequence-Number/m-p/783096#M277277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx all... you have been a great help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nagaian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I was wondering, without the ID column in the test, how would the solution work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 01:24:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Sequence-Number/m-p/783096#M277277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-11T01:24:31Z</dc:date>
    </item>
  </channel>
</rss>

