<?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: replace number in field with new value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/replace-number-in-field-with-new-value/m-p/506928#M189537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the script, Just create the temp table that holds maximum value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD Max([Posting Period]) as MaxPP Resident TableName;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMaxPP = Peek('MaxPP') ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, $(vMaxPP) as [New Posting Period] resident TableName;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to create the maximum for each month, create mapping table with Year and Max Posting Period and then replace existing field by using ApplyMap function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Nov 2013 14:18:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-11T14:18:41Z</dc:date>
    <item>
      <title>replace number in field with new value</title>
      <link>https://community.qlik.com/t5/QlikView/replace-number-in-field-with-new-value/m-p/506927#M189536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i have a field whereby i would like to replace the number with another number, this number should always be the maximum posting period ie. 11 for the current year. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you see in the example i have the period 10 and 1, is it possible to replace these values with 11?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/48838_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 14:09:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replace-number-in-field-with-new-value/m-p/506927#M189536</guid>
      <dc:creator />
      <dc:date>2013-11-11T14:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: replace number in field with new value</title>
      <link>https://community.qlik.com/t5/QlikView/replace-number-in-field-with-new-value/m-p/506928#M189537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the script, Just create the temp table that holds maximum value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD Max([Posting Period]) as MaxPP Resident TableName;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMaxPP = Peek('MaxPP') ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, $(vMaxPP) as [New Posting Period] resident TableName;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to create the maximum for each month, create mapping table with Year and Max Posting Period and then replace existing field by using ApplyMap function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 14:18:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replace-number-in-field-with-new-value/m-p/506928#M189537</guid>
      <dc:creator />
      <dc:date>2013-11-11T14:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: replace number in field with new value</title>
      <link>https://community.qlik.com/t5/QlikView/replace-number-in-field-with-new-value/m-p/506929#M189538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you in the case of resident name do you mean the table that holds my resident values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 14:25:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replace-number-in-field-with-new-value/m-p/506929#M189538</guid>
      <dc:creator />
      <dc:date>2013-11-11T14:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: replace number in field with new value</title>
      <link>https://community.qlik.com/t5/QlikView/replace-number-in-field-with-new-value/m-p/506930#M189539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 16:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replace-number-in-field-with-new-value/m-p/506930#M189539</guid>
      <dc:creator />
      <dc:date>2013-11-11T16:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: replace number in field with new value</title>
      <link>https://community.qlik.com/t5/QlikView/replace-number-in-field-with-new-value/m-p/506931#M189540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also use expression&lt;/P&gt;&lt;P&gt;max({1} [Posting Period])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 16:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/replace-number-in-field-with-new-value/m-p/506931#M189540</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-11T16:57:37Z</dc:date>
    </item>
  </channel>
</rss>

