<?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: Fill empty field with the value from previous cell in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fill-empty-field-with-the-value-from-previous-cell/m-p/1201916#M627110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(len(trim(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Ending_Balance&lt;/SPAN&gt;)), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Ending_Balance&lt;/SPAN&gt;, Peek('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PREnding_Balance&lt;/SPAN&gt;')) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PREnding_Balance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is from Qlik help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor48"&gt;&lt;/A&gt;&lt;A name="peek"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;&lt;STRONG&gt;&lt;EM&gt;peek(&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN class="Italic"&gt;fieldname [ , row [ , tablename ] ] &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Returns the contents of the &lt;SPAN class="Italic"&gt;fieldname&lt;/SPAN&gt; in the record specified by &lt;SPAN class="Italic"&gt;row&lt;/SPAN&gt; in the internal table &lt;SPAN class="Italic"&gt;tablename&lt;/SPAN&gt;. Data are fetched from the associative QlikView database. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Italic"&gt;Fieldname&lt;/SPAN&gt; must be given as a string (e.g. a &lt;STRONG&gt;quoted literal&lt;/STRONG&gt;).&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Nov 2016 07:22:41 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2016-11-01T07:22:41Z</dc:date>
    <item>
      <title>Fill empty field with the value from previous cell</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-empty-field-with-the-value-from-previous-cell/m-p/1201915#M627109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a table that contains Period (Year and Month from 2010 till today).&lt;/P&gt;&lt;P&gt;For each period I have Project #, Project Description, Project type, Fund Type and PO # (can be multiple PO's for one project).&lt;/P&gt;&lt;P&gt;The From Another table I join Ending balance for each Project. As ending balance is a calculation of beginning balance and PO amount the record will be added only on date when the PO has been created (Please see image below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Endbalance.JPG" class="jive-image image-1" height="175" src="https://community.qlik.com/legacyfs/online/142530_Endbalance.JPG" style="height: 175px; width: 380.49242424242425px;" width="380" /&gt;&lt;/P&gt;&lt;P&gt;So what I would like to do is to populate all the fields that are below the ending balance with the ending balance amount until the next populated filed.&lt;/P&gt;&lt;P&gt;I am trying the following code but it only populate the one next row after the balance amount&lt;/P&gt;&lt;P&gt;load *, if(Len(Trim(Ending_Balance)) = 0,peek(Ending_Balance),Ending_Balancet) as PREnding_Balance&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;resident BalanceReport2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;order by POnum, ProjectID,ProjectDesc,ProjectType,FundType,Periods;&lt;/P&gt;&lt;P&gt;drop table BalanceReport2;&lt;/P&gt;&lt;P&gt;Pleas help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 18:02:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-empty-field-with-the-value-from-previous-cell/m-p/1201915#M627109</guid>
      <dc:creator />
      <dc:date>2016-10-31T18:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Fill empty field with the value from previous cell</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-empty-field-with-the-value-from-previous-cell/m-p/1201916#M627110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(len(trim(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Ending_Balance&lt;/SPAN&gt;)), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Ending_Balance&lt;/SPAN&gt;, Peek('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PREnding_Balance&lt;/SPAN&gt;')) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PREnding_Balance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is from Qlik help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor48"&gt;&lt;/A&gt;&lt;A name="peek"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;&lt;STRONG&gt;&lt;EM&gt;peek(&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN class="Italic"&gt;fieldname [ , row [ , tablename ] ] &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Returns the contents of the &lt;SPAN class="Italic"&gt;fieldname&lt;/SPAN&gt; in the record specified by &lt;SPAN class="Italic"&gt;row&lt;/SPAN&gt; in the internal table &lt;SPAN class="Italic"&gt;tablename&lt;/SPAN&gt;. Data are fetched from the associative QlikView database. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="Italic"&gt;Fieldname&lt;/SPAN&gt; must be given as a string (e.g. a &lt;STRONG&gt;quoted literal&lt;/STRONG&gt;).&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 07:22:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-empty-field-with-the-value-from-previous-cell/m-p/1201916#M627110</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-11-01T07:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Fill empty field with the value from previous cell</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-empty-field-with-the-value-from-previous-cell/m-p/1201917#M627111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Massimo.&lt;/P&gt;&lt;P&gt;That works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 13:16:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-empty-field-with-the-value-from-previous-cell/m-p/1201917#M627111</guid>
      <dc:creator />
      <dc:date>2016-11-01T13:16:28Z</dc:date>
    </item>
  </channel>
</rss>

