<?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: Script to Obtain Previous Value for Null Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-to-Obtain-Previous-Value-for-Null-Value/m-p/1420721#M803401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might be you don't have nulls and you have only blanks and that is the reason you are not getting the output. Nulls&amp;nbsp; are different from blanks. Give a try on the below and let me know:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(IsNull(Value) OR Value='',Peek('Value'),Value1) as Value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Nov 2017 13:08:03 GMT</pubDate>
    <dc:creator>trdandamudi</dc:creator>
    <dc:date>2017-11-22T13:08:03Z</dc:date>
    <item>
      <title>Script to Obtain Previous Value for Null Value</title>
      <link>https://community.qlik.com/t5/QlikView/Script-to-Obtain-Previous-Value-for-Null-Value/m-p/1420712#M803392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi everyone, i tried to obtain previous value for null values and wrote the script as shown in screenshot, but the result i got was not correct, can any please give the solution for this&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="183851" alt="2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/183851_2.png" style="height: 230px; width: 620px;" /&gt;,&lt;IMG __jive_id="183838" alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/183838_Untitled.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-to-Obtain-Previous-Value-for-Null-Value/m-p/1420712#M803392</guid>
      <dc:creator>vignesh_s</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Obtain Previous Value for Null Value</title>
      <link>https://community.qlik.com/t5/QlikView/Script-to-Obtain-Previous-Value-for-Null-Value/m-p/1420713#M803393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to replace&lt;/P&gt;&lt;P&gt;Pick(Value1) with Pick(Value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 17:24:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-to-Obtain-Previous-Value-for-Null-Value/m-p/1420713#M803393</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-11-20T17:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Obtain Previous Value for Null Value</title>
      <link>https://community.qlik.com/t5/QlikView/Script-to-Obtain-Previous-Value-for-Null-Value/m-p/1420714#M803394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Properties1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Len&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Value1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))=0, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Value'),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Value1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; temp1;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;drop&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; temp1; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 18:37:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-to-Obtain-Previous-Value-for-Null-Value/m-p/1420714#M803394</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2017-11-20T18:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Obtain Previous Value for Null Value</title>
      <link>https://community.qlik.com/t5/QlikView/Script-to-Obtain-Previous-Value-for-Null-Value/m-p/1420715#M803395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for rply @Thirumala&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;i tried ur script but the result is wrng&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="3.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/183980_3.png" style="height: auto;" /&gt;&lt;IMG alt="4.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/183981_4.png" style="height: 268px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 05:46:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-to-Obtain-Previous-Value-for-Null-Value/m-p/1420715#M803395</guid>
      <dc:creator>vignesh_s</dc:creator>
      <dc:date>2017-11-21T05:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Obtain Previous Value for Null Value</title>
      <link>https://community.qlik.com/t5/QlikView/Script-to-Obtain-Previous-Value-for-Null-Value/m-p/1420716#M803396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logic suggested by &lt;A href="https://community.qlik.com/qlik-users/16307"&gt;trdandamudi&lt;/A&gt;‌ must work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date1, Properties, Value1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11/12/12, A/c, 40&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12/12/12, A/c,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13/12/12, A/c, 50&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14/12/12, Fridge, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15/12/12, Fridge,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16/12/12, Fridge,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17/12/12, Fridge, 250&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15/12/12, TV, 350&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16/12/12, TV,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 27/12/12, TV,&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;final_Data:&lt;/P&gt;&lt;P&gt;Load Date1 as Date, &lt;/P&gt;&lt;P&gt;Properties as Property,&lt;/P&gt;&lt;P&gt;if(len(trim(Value1))=0,Peek('Value'),Value1) as Value&lt;/P&gt;&lt;P&gt;Resident Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT SCRIPT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 06:05:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-to-Obtain-Previous-Value-for-Null-Value/m-p/1420716#M803396</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2017-11-21T06:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Obtain Previous Value for Null Value</title>
      <link>https://community.qlik.com/t5/QlikView/Script-to-Obtain-Previous-Value-for-Null-Value/m-p/1420717#M803397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the screen shot, you are probably taking &lt;STRONG&gt;Value1&lt;/STRONG&gt; instead of &lt;STRONG&gt;Value&lt;/STRONG&gt; in the table box. I.e. you would see the right values in &lt;STRONG&gt;Value&lt;/STRONG&gt; field. Also note, in table box you would not see all the values. You should look at the table view (Ctrl+T) instead to check if it is working fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 06:21:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-to-Obtain-Previous-Value-for-Null-Value/m-p/1420717#M803397</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-11-21T06:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Obtain Previous Value for Null Value</title>
      <link>https://community.qlik.com/t5/QlikView/Script-to-Obtain-Previous-Value-for-Null-Value/m-p/1420718#M803398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use Previous function:&lt;/P&gt;&lt;P&gt;IF(LEN(VALUE)=0,PREVIOUS(VALUE),VALUE) AS NEW_VALUE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 07:49:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-to-Obtain-Previous-Value-for-Null-Value/m-p/1420718#M803398</guid>
      <dc:creator>sumanta12</dc:creator>
      <dc:date>2017-11-21T07:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Obtain Previous Value for Null Value</title>
      <link>https://community.qlik.com/t5/QlikView/Script-to-Obtain-Previous-Value-for-Null-Value/m-p/1420719#M803399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks its wrikng&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 10:14:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-to-Obtain-Previous-Value-for-Null-Value/m-p/1420719#M803399</guid>
      <dc:creator>vignesh_s</dc:creator>
      <dc:date>2017-11-22T10:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Obtain Previous Value for Null Value</title>
      <link>https://community.qlik.com/t5/QlikView/Script-to-Obtain-Previous-Value-for-Null-Value/m-p/1420720#M803400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;its working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i use isNULL(Value) instead of len(value)=0 ,im nt geting the out put,canu explain why&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 10:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-to-Obtain-Previous-Value-for-Null-Value/m-p/1420720#M803400</guid>
      <dc:creator>vignesh_s</dc:creator>
      <dc:date>2017-11-22T10:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Obtain Previous Value for Null Value</title>
      <link>https://community.qlik.com/t5/QlikView/Script-to-Obtain-Previous-Value-for-Null-Value/m-p/1420721#M803401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might be you don't have nulls and you have only blanks and that is the reason you are not getting the output. Nulls&amp;nbsp; are different from blanks. Give a try on the below and let me know:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(IsNull(Value) OR Value='',Peek('Value'),Value1) as Value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 13:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-to-Obtain-Previous-Value-for-Null-Value/m-p/1420721#M803401</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2017-11-22T13:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Obtain Previous Value for Null Value</title>
      <link>https://community.qlik.com/t5/QlikView/Script-to-Obtain-Previous-Value-for-Null-Value/m-p/1420722#M803402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 07:26:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-to-Obtain-Previous-Value-for-Null-Value/m-p/1420722#M803402</guid>
      <dc:creator>vignesh_s</dc:creator>
      <dc:date>2017-11-27T07:26:55Z</dc:date>
    </item>
  </channel>
</rss>

