<?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: increment value after any change in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/increment-value-after-any-change/m-p/1739791#M452875</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/67999"&gt;@JMAROUF&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can also do :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Data:


load *,if(rowno()=1,1,if(previous(Intermediate&amp;amp;'_'&amp;amp;policy)=Intermediate&amp;amp;'_'&amp;amp;policy,peek(number),(peek(number)+1))) as number
inline [
Intermediate,policy,date
xx,val,01/01/2016

xx,val,01/01/2017

yy,val,01/01/2018

yy,val,01/01/2019

xx,val,01/01/2020
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 426px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39793iFF785BAA2B2EBA63/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Aug 2020 09:19:50 GMT</pubDate>
    <dc:creator>Taoufiq_Zarra</dc:creator>
    <dc:date>2020-08-31T09:19:50Z</dc:date>
    <item>
      <title>increment value after any change</title>
      <link>https://community.qlik.com/t5/QlikView/increment-value-after-any-change/m-p/1739686#M452866</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;i want to increment a value after any variable's change, i've used autonumber(FIELD1,FIELD2) it works but when FIELD1 gets the first value&amp;nbsp; autonumber gives the old value example:&lt;/P&gt;&lt;P&gt;field1&amp;nbsp; |&amp;nbsp;field1 | number&lt;/P&gt;&lt;P&gt;xx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;yy&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;xx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;and this is what i want to do:&lt;/P&gt;&lt;P&gt;xx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;yy&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;xx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for advance;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:10:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/increment-value-after-any-change/m-p/1739686#M452866</guid>
      <dc:creator>JMAROUF</dc:creator>
      <dc:date>2024-11-16T18:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: increment value after any change</title>
      <link>https://community.qlik.com/t5/QlikView/increment-value-after-any-change/m-p/1739696#M452869</link>
      <description>&lt;P&gt;One solution for example :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Table1:

load *,if(rowno()=1,1,peek(number)+1) as number
inline [
field1,field2
xx,val
yy,val 
xx,val
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 349px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39770i333C1CADB02E1E30/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Aug 2020 19:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/increment-value-after-any-change/m-p/1739696#M452869</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-08-30T19:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: increment value after any change</title>
      <link>https://community.qlik.com/t5/QlikView/increment-value-after-any-change/m-p/1739703#M452872</link>
      <description>&lt;P&gt;Hi Taoufiq,&lt;/P&gt;&lt;P&gt;Thank you so much for your answer, i've used autonumber() because i have some polices which change intermediate (SLOWLY CHANGING DIMENSION):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;field1&amp;nbsp; |&amp;nbsp;field1 |&amp;nbsp; date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;xx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/01/2015&lt;/P&gt;&lt;P&gt;xx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/01/2016&lt;/P&gt;&lt;P&gt;yy&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01/01/2017&lt;/P&gt;&lt;P&gt;yy&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01/01/2018&lt;/P&gt;&lt;P&gt;yy&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/01/2019&lt;/P&gt;&lt;P&gt;xx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01/01/2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AND WANT THIS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;field1&amp;nbsp; |&amp;nbsp;field1 | number | date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;xx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/01/2015&lt;/P&gt;&lt;P&gt;xx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/01/2016&lt;/P&gt;&lt;P&gt;yy&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01/01/2017&lt;/P&gt;&lt;P&gt;yy&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01/01/2018&lt;/P&gt;&lt;P&gt;yy&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01/01/2019&lt;/P&gt;&lt;P&gt;xx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/01/2020&lt;/P&gt;</description>
      <pubDate>Sun, 30 Aug 2020 22:25:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/increment-value-after-any-change/m-p/1739703#M452872</guid>
      <dc:creator>JMAROUF</dc:creator>
      <dc:date>2020-08-30T22:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: increment value after any change</title>
      <link>https://community.qlik.com/t5/QlikView/increment-value-after-any-change/m-p/1739788#M452874</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/56648"&gt;@Taoufiq_Zarra&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your answer, i've used autonumber for the ( SLOWLY CHANGING DIMENSION), i have some polices which change the intermediate, ex:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Intermediate|&amp;nbsp;policy| date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;xx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01/01/2016&lt;/P&gt;&lt;P&gt;xx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01/01/2017&lt;/P&gt;&lt;P&gt;yy&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01/01/2018&lt;/P&gt;&lt;P&gt;yy&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01/01/2019&lt;/P&gt;&lt;P&gt;xx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;01/01/2020&lt;/P&gt;&lt;P&gt;and this is what i want:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Intermediate|&amp;nbsp;policy| date | number&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;xx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01/01/2016&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;xx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01/01/2017&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;yy&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01/01/2018&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;yy&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01/01/2019&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;xx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;val&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;01/01/2020&amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 09:12:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/increment-value-after-any-change/m-p/1739788#M452874</guid>
      <dc:creator>JMAROUF</dc:creator>
      <dc:date>2020-08-31T09:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: increment value after any change</title>
      <link>https://community.qlik.com/t5/QlikView/increment-value-after-any-change/m-p/1739791#M452875</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/67999"&gt;@JMAROUF&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can also do :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Data:


load *,if(rowno()=1,1,if(previous(Intermediate&amp;amp;'_'&amp;amp;policy)=Intermediate&amp;amp;'_'&amp;amp;policy,peek(number),(peek(number)+1))) as number
inline [
Intermediate,policy,date
xx,val,01/01/2016

xx,val,01/01/2017

yy,val,01/01/2018

yy,val,01/01/2019

xx,val,01/01/2020
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 426px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39793iFF785BAA2B2EBA63/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 09:19:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/increment-value-after-any-change/m-p/1739791#M452875</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-08-31T09:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: increment value after any change</title>
      <link>https://community.qlik.com/t5/QlikView/increment-value-after-any-change/m-p/1739838#M452876</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/56648"&gt;@Taoufiq_Zarra&lt;/a&gt;&amp;nbsp;, it works well.&lt;/P&gt;&lt;P&gt;Best regards;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 11:09:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/increment-value-after-any-change/m-p/1739838#M452876</guid>
      <dc:creator>JMAROUF</dc:creator>
      <dc:date>2020-08-31T11:09:12Z</dc:date>
    </item>
  </channel>
</rss>

