<?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 Problem generating a sequence number, need help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-generating-a-sequence-number-need-help/m-p/782325#M661986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm dealing with a apparently easy problem to solve but i've tried so many times that i can't think of nothing anymore. So here's the deal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 185px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="height: 12.75pt; width: 56pt;" width="75"&gt;Person&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; width: 35pt;" width="47"&gt;Job&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; width: 47pt;" width="63"&gt;Sequence&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl64" height="17" style="height: 12.75pt; border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Exec10&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl64" height="17" style="height: 12.75pt; border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Exec12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl64" height="17" style="height: 12.75pt; border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Exec12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl64" height="17" style="height: 12.75pt; border-top: none;"&gt;Chris&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;DevII&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl64" height="17" style="height: 12.75pt; border-top: none;"&gt;Terry&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Aux&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl64" height="17" style="height: 12.75pt; border-top: none;"&gt;Terry&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;AuxII&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl64" height="17" style="height: 12.75pt; border-top: none;"&gt;Tiffany&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Dev&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(nervermind the zeros, but that's my problem).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See that BOB has 2 jobs, but one got 2 registers. I want to generate a sequence that adds(+1) to the new job for the person. Repeating till the next job row updates. It would be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 185px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl65" height="17" style="height: 12.75pt; width: 56pt;" width="75"&gt;Person&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none; width: 35pt;" width="47"&gt;Job&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none; width: 47pt;" width="63"&gt;Sequence&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="height: 12.75pt; border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Exec10&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="height: 12.75pt; border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Exec12&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt; 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="height: 12.75pt; border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Exec12&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt; 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="height: 12.75pt; border-top: none;"&gt;Chris&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;DevII&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="height: 12.75pt; border-top: none;"&gt;Terry&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Aux&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="height: 12.75pt; border-top: none;"&gt;Terry&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;AuxII&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt; 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="height: 12.75pt; border-top: none;"&gt;Tiffany&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Dev&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it's simple but i can't figure it out. Thanks in advance! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Feb 2015 17:29:16 GMT</pubDate>
    <dc:creator>gradiske</dc:creator>
    <dc:date>2015-02-24T17:29:16Z</dc:date>
    <item>
      <title>Problem generating a sequence number, need help</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-generating-a-sequence-number-need-help/m-p/782325#M661986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm dealing with a apparently easy problem to solve but i've tried so many times that i can't think of nothing anymore. So here's the deal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 185px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl63" height="17" style="height: 12.75pt; width: 56pt;" width="75"&gt;Person&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; width: 35pt;" width="47"&gt;Job&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none; width: 47pt;" width="63"&gt;Sequence&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl64" height="17" style="height: 12.75pt; border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Exec10&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl64" height="17" style="height: 12.75pt; border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Exec12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl64" height="17" style="height: 12.75pt; border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Exec12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl64" height="17" style="height: 12.75pt; border-top: none;"&gt;Chris&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;DevII&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl64" height="17" style="height: 12.75pt; border-top: none;"&gt;Terry&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Aux&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl64" height="17" style="height: 12.75pt; border-top: none;"&gt;Terry&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;AuxII&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl64" height="17" style="height: 12.75pt; border-top: none;"&gt;Tiffany&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Dev&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(nervermind the zeros, but that's my problem).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See that BOB has 2 jobs, but one got 2 registers. I want to generate a sequence that adds(+1) to the new job for the person. Repeating till the next job row updates. It would be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 185px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl65" height="17" style="height: 12.75pt; width: 56pt;" width="75"&gt;Person&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none; width: 35pt;" width="47"&gt;Job&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none; width: 47pt;" width="63"&gt;Sequence&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="height: 12.75pt; border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Exec10&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="height: 12.75pt; border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Exec12&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt; 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="height: 12.75pt; border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Exec12&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt; 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="height: 12.75pt; border-top: none;"&gt;Chris&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;DevII&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="height: 12.75pt; border-top: none;"&gt;Terry&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Aux&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="height: 12.75pt; border-top: none;"&gt;Terry&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;AuxII&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt; 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="height: 12.75pt; border-top: none;"&gt;Tiffany&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Dev&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it's simple but i can't figure it out. Thanks in advance! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 17:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-generating-a-sequence-number-need-help/m-p/782325#M661986</guid>
      <dc:creator>gradiske</dc:creator>
      <dc:date>2015-02-24T17:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem generating a sequence number, need help</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-generating-a-sequence-number-need-help/m-p/782326#M661987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;RESULT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="1.jpg" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/79010_1.jpg" style="height: auto; width: auto;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SCRIPT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;a:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load *, rowno() as id inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Person, Job, Sequence&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Bob, Exec10, 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Bob, Exec12,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Bob, Exec12,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Chris, DevII, 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Terry, Aux ,0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Terry, AuxII,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Tiffany ,Dev, 0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;b:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate &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;&amp;nbsp; id, Person, Job,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; if(Person&amp;lt;&amp;gt;Peek(Person), &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 1,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; if(Job&amp;lt;&amp;gt;Peek(Job), &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; peek(Sequence) +1, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; peek(Sequence))) as Sequence&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident a&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;order by Person, Job;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table a;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 20:47:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-generating-a-sequence-number-need-help/m-p/782326#M661987</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-02-24T20:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem generating a sequence number, need help</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-generating-a-sequence-number-need-help/m-p/782327#M661988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, man! While i was waiting for a response, i've tried this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(previous(Person)&amp;lt;&amp;gt;Person,1,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(previous(Person)=Person and previous(Job)&amp;lt;&amp;gt;Job,numsum(Peek('Sequencia'),1),Peek('Sequencia'))) as Sequencia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it didn't seem to work... after some search there was some trash in our data, f***ing the sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both yours and mine solution works now. Thanks for your attention!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's always good to know that are more than one solution &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 13:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-generating-a-sequence-number-need-help/m-p/782327#M661988</guid>
      <dc:creator>gradiske</dc:creator>
      <dc:date>2015-02-25T13:01:57Z</dc:date>
    </item>
  </channel>
</rss>

