<?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 Fill in missing value with next available in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fill-in-missing-value-with-next-available/m-p/309102#M114122</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe this does fit your needs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;month, value&lt;/P&gt;&lt;P&gt;2, 10&lt;/P&gt;&lt;P&gt;4,15&lt;/P&gt;&lt;P&gt;6,20&lt;/P&gt;&lt;P&gt;7,25&lt;/P&gt;&lt;P&gt;9,30&lt;/P&gt;&lt;P&gt;12,35&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right join LOAD recno() as month autogenerate 12;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESULT:&lt;/P&gt;&lt;P&gt;noconcatenate load&lt;/P&gt;&lt;P&gt;month,&lt;/P&gt;&lt;P&gt;if(isnull(value), rangesum(peek(value)), value) as value&lt;/P&gt;&lt;P&gt;resident INPUT order by month desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table INPUT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2011 20:31:51 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-12-16T20:31:51Z</dc:date>
    <item>
      <title>Fill in missing value with next available</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-in-missing-value-with-next-available/m-p/309101#M114121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have hit a bit a of a bump in the road and I can't seem to figure out the solution.&amp;nbsp; Here is my issue.&amp;nbsp; I have a table with 6 different months in the data with one record for each month.&amp;nbsp; I want to populate all 12 months with data using the data from the next available month for the missing month.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my table:&lt;/P&gt;&lt;P&gt;month, value&lt;/P&gt;&lt;P&gt;2, 10&lt;/P&gt;&lt;P&gt;4,15&lt;/P&gt;&lt;P&gt;6,20&lt;/P&gt;&lt;P&gt;7,25&lt;/P&gt;&lt;P&gt;9,30&lt;/P&gt;&lt;P&gt;12,35&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I need:&lt;/P&gt;&lt;P&gt;month,value&lt;/P&gt;&lt;P&gt;1,10&lt;/P&gt;&lt;P&gt;2,10&lt;/P&gt;&lt;P&gt;3,15&lt;/P&gt;&lt;P&gt;4,15&lt;/P&gt;&lt;P&gt;5,20&lt;/P&gt;&lt;P&gt;6,20&lt;/P&gt;&lt;P&gt;7,25&lt;/P&gt;&lt;P&gt;8,30&lt;/P&gt;&lt;P&gt;9,30&lt;/P&gt;&lt;P&gt;10,35&lt;/P&gt;&lt;P&gt;11,35&lt;/P&gt;&lt;P&gt;12,35&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 20:24:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-in-missing-value-with-next-available/m-p/309101#M114121</guid>
      <dc:creator />
      <dc:date>2011-12-16T20:24:42Z</dc:date>
    </item>
    <item>
      <title>Fill in missing value with next available</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-in-missing-value-with-next-available/m-p/309102#M114122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe this does fit your needs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;month, value&lt;/P&gt;&lt;P&gt;2, 10&lt;/P&gt;&lt;P&gt;4,15&lt;/P&gt;&lt;P&gt;6,20&lt;/P&gt;&lt;P&gt;7,25&lt;/P&gt;&lt;P&gt;9,30&lt;/P&gt;&lt;P&gt;12,35&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right join LOAD recno() as month autogenerate 12;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESULT:&lt;/P&gt;&lt;P&gt;noconcatenate load&lt;/P&gt;&lt;P&gt;month,&lt;/P&gt;&lt;P&gt;if(isnull(value), rangesum(peek(value)), value) as value&lt;/P&gt;&lt;P&gt;resident INPUT order by month desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table INPUT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 20:31:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-in-missing-value-with-next-available/m-p/309102#M114122</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-12-16T20:31:51Z</dc:date>
    </item>
    <item>
      <title>Fill in missing value with next available</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-in-missing-value-with-next-available/m-p/309103#M114123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I now have a table with all 12 months but the missing values are all zeroes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 20:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-in-missing-value-with-next-available/m-p/309103#M114123</guid>
      <dc:creator />
      <dc:date>2011-12-16T20:49:45Z</dc:date>
    </item>
    <item>
      <title>Fill in missing value with next available</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-in-missing-value-with-next-available/m-p/309104#M114124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It must be something I am doing trying to convert the simple example to my code.&amp;nbsp; Here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Market:&lt;/P&gt;&lt;P&gt; LOAD Date as MarketDate,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Delivery as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; month(Delivery) as month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Price as market&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Market);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right join LOAD recno() as month autogenerate 12;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESULT:&lt;/P&gt;&lt;P&gt;noconcatenate load&lt;/P&gt;&lt;P&gt;month,&lt;/P&gt;&lt;P&gt;if(isnull(market), rangesum(peek(market)), market) as value&lt;/P&gt;&lt;P&gt;resident Market order by month desc;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 20:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-in-missing-value-with-next-available/m-p/309104#M114124</guid>
      <dc:creator />
      <dc:date>2011-12-16T20:52:49Z</dc:date>
    </item>
    <item>
      <title>Fill in missing value with next available</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-in-missing-value-with-next-available/m-p/309105#M114125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if you comment the last RESULT table load out, what do you get in detail for table Market? Could you post it here? Just asking myself if you may need to use num(month(Delivery)) as month in your first load..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all works sometime, then you probably want to load also MarketDate and Month (btw. is Delivery a date or a month?) in your final load and drop the MARKET table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 21:10:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-in-missing-value-with-next-available/m-p/309105#M114125</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-12-16T21:10:42Z</dc:date>
    </item>
    <item>
      <title>Fill in missing value with next available</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-in-missing-value-with-next-available/m-p/309106#M114126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured out where I went wrong. Thank you so much for your help.&amp;nbsp; Here is the corrected code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Market:&lt;/P&gt;&lt;P&gt; LOAD Date as MarketDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Commodity, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Delivery as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(month(Delivery)) as month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Price as market&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Market);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right join &lt;/P&gt;&lt;P&gt;LOAD recno() as month &lt;/P&gt;&lt;P&gt;autogenerate 12;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESULT:&lt;/P&gt;&lt;P&gt;noconcatenate load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MarketDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Commodity, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; month,&lt;/P&gt;&lt;P&gt;if(isnull(market), rangesum(peek(market)), market) as market&lt;/P&gt;&lt;P&gt;resident Market order by month desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Market;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 21:15:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-in-missing-value-with-next-available/m-p/309106#M114126</guid>
      <dc:creator />
      <dc:date>2011-12-16T21:15:20Z</dc:date>
    </item>
  </channel>
</rss>

