<?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: Get previous row value when the value is null in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953142#M327707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The blank rows are dynamic and it will be very difficult to use nested if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Nov 2015 15:43:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-20T15:43:48Z</dc:date>
    <item>
      <title>Get previous row value when the value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953140#M327705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to copy the previous value when the current row value is null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the peek/previous functions but it is working only for the first blank row and it doesn't carry that logic to the next blank row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Billing Lines and customers.For few billing lines I don't have the Customer details in which I want to copy the Customer number from the previous billing line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the data is huge,could you please suggest the best way to achive this logic?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Jeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 15:37:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953140#M327705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-20T15:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous row value when the value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953141#M327706</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;Would is your logic you have used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would normally,do something like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(RowNo() =1 , &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(ISNULL(Value)=-1,0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(ISNULL(Value)=-1, Previous(Value))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) AS Value,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that will only work for one step back, if you could have more than one value blank then you need to look at the peek and longer nested if.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 15:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953141#M327706</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2015-11-20T15:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous row value when the value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953142#M327707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The blank rows are dynamic and it will be very difficult to use nested if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 15:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953142#M327707</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-20T15:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous row value when the value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953143#M327708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is you logic the same as mine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I was not thinking correctly as this works on loading the table it should basic work as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the first value is null then 0&lt;/P&gt;&lt;P&gt;then it load the next line if it is null then it will also be 0 unless the value.&lt;/P&gt;&lt;P&gt;So it should always have a value to check back on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 15:47:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953143#M327708</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2015-11-20T15:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous row value when the value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953144#M327709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Do not use previous()&lt;/EM&gt;. Use peek() as you would like to propagate the previously propagated value from the resulting table (not the input table) into the next blank field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF (len(trim(Customer)) = 0, peek('Customer'), Customer) AS Customer,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that you may have to check for a very first row having a blank Customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 15:48:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953144#M327709</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-11-20T15:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous row value when the value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953145#M327710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample attachment will help you more about my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to fill the highlighted yellow rows with the above filled value.The peek function copy only the next row and it doesn't go to the third row where it is blank.Also I am curious it works some time and doesn't work some times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regads&lt;/P&gt;&lt;P&gt;Jeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 15:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953145#M327710</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-20T15:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous row value when the value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953146#M327711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then why does my code produce the following result?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Fill blanks in field thread192359.jpg" class="jive-image image-1" height="324" src="/legacyfs/online/106241_Fill blanks in field thread192359.jpg" style="height: 324px; width: 117.149px;" width="117" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 16:12:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953146#M327711</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-11-20T16:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous row value when the value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953147#M327712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try this again and confirm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using isnull logic.was that wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 16:14:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953147#M327712</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-20T16:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous row value when the value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953148#M327713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IsNull() will work for database fields (databases know about the NULL concept) but not for Excel. Excel will return empty strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trick&lt;SPAN style="font-family: 'courier new', courier;"&gt; len(trim(Fieldname))&lt;/SPAN&gt; will work in all cases.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 16:16:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953148#M327713</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-11-20T16:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous row value when the value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953149#M327714</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;Maybe you could use the fill transformation step function (don't know if it works with resident load but it does work on table files load).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [BILLING LINE], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;sample.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1, filters(&lt;/P&gt;&lt;P&gt;Replace(2, top, StrCnd(null))&lt;/P&gt;&lt;P&gt;));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 16:19:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953149#M327714</guid>
      <dc:creator>thomaslg_wq</dc:creator>
      <dc:date>2015-11-20T16:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous row value when the value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953150#M327715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with large data set.But it doesn't worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is copying only one row and it doesn't go beyond that.i.e If I have 3 blank rows after 1st row its copying the first row value to next row only and not to the second rows and etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it because of the large data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any guidance will be a very big help for me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 09:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953150#M327715</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-23T09:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous row value when the value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953151#M327716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, the number of rows doesn't impact the correct execution of this LOAD statement. A regular LOAD statement executes row-by-row, and since you only look back one row (in the internal table), every evaluation will will cover a maximum of two rows at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think we can only help you further if you supply the actual script to us. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. Did you try the alternate solution suggested below by Thomas? It will only work when reading an external file, so you may have to temporarily store an internal table into a QVD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 10:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953151#M327716</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-11-23T10:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous row value when the value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953152#M327717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(len(Trim(SHIPTO))=0,Peek(SHIPTO),SHIPTO) AS %SHIPTO_tmp&lt;/P&gt;&lt;P&gt;Resident VBRK_tmp&lt;/P&gt;&lt;P&gt;order by %BILLITEM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Jeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 11:33:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953152#M327717</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-23T11:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous row value when the value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953153#M327718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simple solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;First order your table,&lt;/LI&gt;&lt;LI&gt;only then and in a separate LOAD ... RESIDENT statement, use peek() to fill blank rows&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ORDER BY and peek() don't work well together in the same LOAD...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 11:49:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953153#M327718</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-11-23T11:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous row value when the value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953154#M327719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried that as well but,its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the script for your kind reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; *,&lt;/SPAN&gt;&lt;SPAN style="color: #008000; 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;%SHIPTO_tmp&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;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;%SHIPTO_tmp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;%SHIPTO_tmp&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;%SHIPTO&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;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(BUFFERDIRECTORY)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;VBRK_Temp.qvd(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Jeba&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 11:54:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953154#M327719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-23T11:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous row value when the value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953155#M327720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Try this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;// &lt;SPAN style="font-family: Arial, sans-serif; font-size: 13.3333px;"&gt; I guess &lt;/SPAN&gt;peek() needs -1 parameter :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;//if order by needed:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;TEMP:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Helvetica','sans-serif';"&gt;Load&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Helvetica','sans-serif';"&gt; *&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;FROM&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'inherit','serif';"&gt;$(BUFFERDIRECTORY)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Helvetica','sans-serif';"&gt;VBRK_Temp.qvd(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Helvetica','sans-serif';"&gt;// order by ORDERFIELD&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Helvetica','sans-serif';"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Helvetica','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Helvetica','sans-serif';"&gt;REAL: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Helvetica','sans-serif';"&gt;Load&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Helvetica','sans-serif';"&gt; *,&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;len&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;%SHIPTO_tmp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;))=0,&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;%SHIPTO_tmp,-1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;%SHIPTO_tmp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;%SHIPTO&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;resident TEMP;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Helvetica','sans-serif';"&gt; Drop table TEMP;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Helvetica','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Helvetica','sans-serif';"&gt;//if order by not needed&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Helvetica','sans-serif';"&gt;REAL:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Helvetica','sans-serif';"&gt;Load&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Helvetica','sans-serif';"&gt; *,&lt;BR /&gt; If(len(Trim(%SHIPTO_tmp))=0,Peek(%SHIPTO_tmp,-1),%SHIPTO_tmp) AS %SHIPTO&lt;BR /&gt; resident TEMP;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 12:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953155#M327720</guid>
      <dc:creator>thomaslg_wq</dc:creator>
      <dc:date>2015-11-23T12:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous row value when the value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953156#M327721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please give me more information about this logic?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 12:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953156#M327721</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-23T12:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous row value when the value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953157#M327722</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;1 : in script windows, go on table file load,&lt;/P&gt;&lt;P&gt;2 : load your file, but don't apply now -&amp;gt; next,-&amp;gt; enable transformation step&lt;/P&gt;&lt;P&gt;3 : go in fill tab, and choose, -&amp;gt; fill -&amp;gt; target column 2 -&amp;gt; cell condition (is empty) // above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT NEXT FINISH&lt;/P&gt;&lt;P&gt;It will fill empty rows with above value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="enable tstep.png" class="jive-image image-1" src="/legacyfs/online/106425_enable tstep.png" style="height: 415px; width: 620px;" /&gt;&lt;IMG alt="fill tab.png" class="jive-image image-2" src="/legacyfs/online/106426_fill tab.png" style="height: 415px; width: 620px;" /&gt;&lt;IMG alt="fill param.png" class="jive-image image-3" src="/legacyfs/online/106427_fill param.png" style="height: auto;" /&gt;&lt;IMG alt="is empty.png" class="image-4 jive-image" src="/legacyfs/online/106428_is empty.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 12:26:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953157#M327722</guid>
      <dc:creator>thomaslg_wq</dc:creator>
      <dc:date>2015-11-23T12:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous row value when the value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953158#M327723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peek() accepts a field name (as a text string), not a field itself. You should use &lt;SPAN style="font-family: 'courier new', courier;"&gt;Peek('&lt;SPAN style="color: #800000; font-size: 10.6667px;"&gt;%SHIPTO_tmp&lt;/SPAN&gt;').&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 12:29:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953158#M327723</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-11-23T12:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous row value when the value is null</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953159#M327724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/434207"&gt;Re: Peek back till not Null&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 12:37:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-row-value-when-the-value-is-null/m-p/953159#M327724</guid>
      <dc:creator>NareshGuntur</dc:creator>
      <dc:date>2015-11-23T12:37:39Z</dc:date>
    </item>
  </channel>
</rss>

