<?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: How to auto-fill in empty cells with first value til next value etc? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-auto-fill-in-empty-cells-with-first-value-til-next-value/m-p/993351#M641851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;LOAD time, price, quantity&lt;/P&gt;&lt;P&gt;FROM YourTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESULT:&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;LOAD time,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alt(price, Peek(price) ) as price,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quantity&lt;/P&gt;&lt;P&gt;RESIDENT T1&lt;/P&gt;&lt;P&gt;ORDER BY time;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE T1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: changed previous() to peek()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Dec 2015 20:53:27 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-12-28T20:53:27Z</dc:date>
    <item>
      <title>How to auto-fill in empty cells with first value til next value etc?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-auto-fill-in-empty-cells-with-first-value-til-next-value/m-p/993350#M641850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please recommend a fastest (performance wise) solution on how to deal with the following. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this table with empty/null fileds - please see below -&amp;nbsp; but I need that instead of those empty fields/nulls in Price column,&amp;nbsp; the first Price&amp;nbsp; column was filled in with the Price Value of the first Price Value till the next Price Value. Then after the next Price Value it was filled with the next Price Value til the next next Price Value etc.....&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it would look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Price&lt;/P&gt;&lt;P&gt;03:16:56&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4604&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;03:16:56&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4603.75&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;03:16:57&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4603.75&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;03:17:01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4603.75&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;03:17:10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4604&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;03:17:13&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4604&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;03:17:26&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4603.75&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;03:17:30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4603.75&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;etc.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea? Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;r.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. there is no any logic /patterns on how the Price changes.....&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/110065_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2015 20:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-auto-fill-in-empty-cells-with-first-value-til-next-value/m-p/993350#M641850</guid>
      <dc:creator />
      <dc:date>2015-12-28T20:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto-fill in empty cells with first value til next value etc?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-auto-fill-in-empty-cells-with-first-value-til-next-value/m-p/993351#M641851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;LOAD time, price, quantity&lt;/P&gt;&lt;P&gt;FROM YourTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESULT:&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;LOAD time,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alt(price, Peek(price) ) as price,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quantity&lt;/P&gt;&lt;P&gt;RESIDENT T1&lt;/P&gt;&lt;P&gt;ORDER BY time;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE T1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: changed previous() to peek()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2015 20:53:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-auto-fill-in-empty-cells-with-first-value-til-next-value/m-p/993351#M641851</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-28T20:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto-fill in empty cells with first value til next value etc?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-auto-fill-in-empty-cells-with-first-value-til-next-value/m-p/993352#M641852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to do this in an expression or back end of the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2015 20:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-auto-fill-in-empty-cells-with-first-value-til-next-value/m-p/993352#M641852</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-28T20:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto-fill in empty cells with first value til next value etc?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-auto-fill-in-empty-cells-with-first-value-til-next-value/m-p/993353#M641853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@SunnyT&amp;nbsp; I would prefere it to be done in backend / the script editor if its possible (when reloading the script once). Basically I got a table from MS SQL DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mytable:&lt;/P&gt;&lt;P&gt;SQL SELECT&amp;nbsp; "Price",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Volume_size"&lt;/P&gt;&lt;P&gt;FROM "my_db".dbo."my_table";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2015 21:05:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-auto-fill-in-empty-cells-with-first-value-til-next-value/m-p/993353#M641853</guid>
      <dc:creator />
      <dc:date>2015-12-28T21:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto-fill in empty cells with first value til next value etc?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-auto-fill-in-empty-cells-with-first-value-til-next-value/m-p/993354#M641854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then I think you should be able to do it using &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌'s provided script. If it did not work, then provide a sample (preferably in an Excel file) to help you better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2015 21:18:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-auto-fill-in-empty-cells-with-first-value-til-next-value/m-p/993354#M641854</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-28T21:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto-fill in empty cells with first value til next value etc?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-auto-fill-in-empty-cells-with-first-value-til-next-value/m-p/993355#M641855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;mytable:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD Alt( Price, Peek( Price) ) as Price,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Volume_size];&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT&amp;nbsp; "Price",&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Volume_size"&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM "my_db".dbo."my_table"&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ORDER BY date ASC;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2015 21:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-auto-fill-in-empty-cells-with-first-value-til-next-value/m-p/993355#M641855</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-28T21:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto-fill in empty cells with first value til next value etc?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-auto-fill-in-empty-cells-with-first-value-til-next-value/m-p/993356#M641856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I tryed the script it did solved but partially. i am still having blanks. I am attaching the main table - got exported into csv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a straight table with dimentions time, price and expresion sum(Quantity). After using swuel script it looks like this.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/110066_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2015 21:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-auto-fill-in-empty-cells-with-first-value-til-next-value/m-p/993356#M641856</guid>
      <dc:creator />
      <dc:date>2015-12-28T21:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto-fill in empty cells with first value til next value etc?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-auto-fill-in-empty-cells-with-first-value-til-next-value/m-p/993357#M641857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This blog post &lt;A href="https://community.qlik.com/docs/DOC-3786"&gt;Generating Missing Data In QlikView&lt;/A&gt; by HIC is well worth a read.&amp;nbsp; Not just re your question, but also other related scenarios.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2015 22:05:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-auto-fill-in-empty-cells-with-first-value-til-next-value/m-p/993357#M641857</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-28T22:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to auto-fill in empty cells with first value til next value etc?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-auto-fill-in-empty-cells-with-first-value-til-next-value/m-p/993358#M641858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should fill in prices in your sample csv:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14513422652899762" jivemacro_uid="_14513422652899762"&gt;
&lt;P&gt;SET ThousandSep=',';&lt;/P&gt;
&lt;P&gt;SET DecimalSep='.';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;T1:&lt;/P&gt;
&lt;P&gt;LOAD Ask_price,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ask_size,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bid_price,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bid_size,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Price,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quantity,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; time,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Volume_size&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[sample (1).txt]&lt;/P&gt;
&lt;P&gt;(txt, utf8, embedded labels, delimiter is ';', msq);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD recno() as RecNo,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; time,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if(len(trim(Price)),Price,Peek(Price)) as Price,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Quantity&lt;/P&gt;
&lt;P&gt;RESIDENT T1&lt;/P&gt;
&lt;P&gt;ORDER BY date, time;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP TABLE T1;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2015 22:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-auto-fill-in-empty-cells-with-first-value-til-next-value/m-p/993358#M641858</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-28T22:38:06Z</dc:date>
    </item>
  </channel>
</rss>

