<?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: How to cover gaps in numerical sequences? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-cover-gaps-in-numerical-sequences/m-p/1643206#M594704</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;probably this could work&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;OUTPUT:&lt;BR /&gt;LOAD&lt;BR /&gt;FIELD_C,&lt;BR /&gt;If(FIELD_C&amp;lt;&amp;gt;Previous(FIELD_C), 1,&lt;BR /&gt;If(FIELD_P&amp;lt;&amp;gt;Previous(FIELD_P),(Peek('FIELD_P')+1),Peek('FIELD_P'))) AS FIELD_P,&lt;BR /&gt;FIELD_P AS FIELD_P_OLD&lt;BR /&gt;Resident ...&lt;BR /&gt;Order By&lt;BR /&gt;FIELD_C,&lt;BR /&gt;FIELD_P&lt;BR /&gt;;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Nov 2019 14:21:19 GMT</pubDate>
    <dc:creator>StarinieriG</dc:creator>
    <dc:date>2019-11-05T14:21:19Z</dc:date>
    <item>
      <title>How to cover gaps in numerical sequences?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-cover-gaps-in-numerical-sequences/m-p/1643199#M594703</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;i've the following problem: i need to cover gaps in numerical sequences.&lt;/P&gt;&lt;P&gt;I've two fields, e.g., FIELD_C and FIELD_P:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;FIELD_C: 0000001 have this value as FIELD_P: 1,2,4,7,9&lt;/LI&gt;&lt;LI&gt;FIELD_C: 0000002 have this value as FIELD_P: 2,3,5,6&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So, i want this output:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;FIELD_C: 0000001 have this value as FIELD_P: 1,2,3,4,5 (1 and 2 is ok, 3 is the new 4, 4 is the new 7 and 5 is the new 9)&lt;/LI&gt;&lt;LI&gt;FIELD_C: 0000002 have this value as FIELD_P: 1,2,3,4 (1 is the new 2, 2 is the new 3, 3 is the new 5 and 4 is the new 6)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Please, can you show me the right expression to do this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mattia&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-cover-gaps-in-numerical-sequences/m-p/1643199#M594703</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2024-11-16T19:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to cover gaps in numerical sequences?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-cover-gaps-in-numerical-sequences/m-p/1643206#M594704</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;probably this could work&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;OUTPUT:&lt;BR /&gt;LOAD&lt;BR /&gt;FIELD_C,&lt;BR /&gt;If(FIELD_C&amp;lt;&amp;gt;Previous(FIELD_C), 1,&lt;BR /&gt;If(FIELD_P&amp;lt;&amp;gt;Previous(FIELD_P),(Peek('FIELD_P')+1),Peek('FIELD_P'))) AS FIELD_P,&lt;BR /&gt;FIELD_P AS FIELD_P_OLD&lt;BR /&gt;Resident ...&lt;BR /&gt;Order By&lt;BR /&gt;FIELD_C,&lt;BR /&gt;FIELD_P&lt;BR /&gt;;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 14:21:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-cover-gaps-in-numerical-sequences/m-p/1643206#M594704</guid>
      <dc:creator>StarinieriG</dc:creator>
      <dc:date>2019-11-05T14:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to cover gaps in numerical sequences?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-cover-gaps-in-numerical-sequences/m-p/1643247#M594705</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks for the prompt reply.&lt;/P&gt;&lt;P&gt;I try and i let you know ASAP!&lt;/P&gt;&lt;P&gt;Mattia&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 14:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-cover-gaps-in-numerical-sequences/m-p/1643247#M594705</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2019-11-05T14:55:18Z</dc:date>
    </item>
  </channel>
</rss>

