<?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: Use previous in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-previous/m-p/1128973#M371265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If([@350:359] = Previous(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;[@350:359]) and [@484:486] = '&amp;nbsp;&amp;nbsp;&amp;nbsp; ', &lt;SPAN style="color: #ff0000;"&gt;Peek('ST')&lt;/SPAN&gt;, &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;[@484:486]) as [ST]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&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;&lt;STRONG style="font-size: 13.3333px;"&gt;If([@350:359] = Previous(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;[@350:359]) and Len(Trim([@484:486])) = 0, &lt;SPAN style="color: #ff0000;"&gt;Peek('ST')&lt;/SPAN&gt;, &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;[@484:486]) as [ST]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 May 2016 08:50:31 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-12T08:50:31Z</dc:date>
    <item>
      <title>Use previous</title>
      <link>https://community.qlik.com/t5/QlikView/Use-previous/m-p/1128972#M371264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m loading a text file with orders and some of the detail order lines contains a number but some of the other&lt;/P&gt;&lt;P&gt;does not. My aim is to add the number to all records within the order. An excerpt of the text file looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ST.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/124389_ST.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;with this line in my script can I only fill in 506 in the first record after 506 and the others will remain empty.&lt;/P&gt;&lt;P&gt; &lt;IMG alt="script.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/124390_script.png" style="height: 84px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;This is what I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="utfallST.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/124400_utfallST.png" style="height: 203px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;How do I get the lines with 'ST' empty filled with 506?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly&lt;/P&gt;&lt;P&gt;Håkan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 08:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-previous/m-p/1128972#M371264</guid>
      <dc:creator />
      <dc:date>2016-05-12T08:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Use previous</title>
      <link>https://community.qlik.com/t5/QlikView/Use-previous/m-p/1128973#M371265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If([@350:359] = Previous(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;[@350:359]) and [@484:486] = '&amp;nbsp;&amp;nbsp;&amp;nbsp; ', &lt;SPAN style="color: #ff0000;"&gt;Peek('ST')&lt;/SPAN&gt;, &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;[@484:486]) as [ST]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&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;&lt;STRONG style="font-size: 13.3333px;"&gt;If([@350:359] = Previous(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;[@350:359]) and Len(Trim([@484:486])) = 0, &lt;SPAN style="color: #ff0000;"&gt;Peek('ST')&lt;/SPAN&gt;, &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;[@484:486]) as [ST]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 08:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-previous/m-p/1128973#M371265</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-12T08:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Use previous</title>
      <link>https://community.qlik.com/t5/QlikView/Use-previous/m-p/1128974#M371266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for VERY fast answer. I took 5 times longer time to create the question than get the answer.&lt;/P&gt;&lt;P&gt;Awsome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly&lt;/P&gt;&lt;P&gt;Håkan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 08:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-previous/m-p/1128974#M371266</guid>
      <dc:creator />
      <dc:date>2016-05-12T08:58:00Z</dc:date>
    </item>
  </channel>
</rss>

