<?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 the missing dates with the Previous days Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110140#M17197</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me with the problem I am facing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to fill the missing dates and it values from the previous day's values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried multiple logic provided in the community,unfortunately I didn't get the required output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may be because of the data I have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the challenges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID will have multiple rows per day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no data for a particular day,then I want all the rows from previous day's data to be populated and have a new date as missing date and this needs to created until today&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaching the sample data which will help more&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, 05 Nov 2018 21:58:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-11-05T21:58:06Z</dc:date>
    <item>
      <title>Fill the missing dates with the Previous days Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110140#M17197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me with the problem I am facing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to fill the missing dates and it values from the previous day's values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried multiple logic provided in the community,unfortunately I didn't get the required output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may be because of the data I have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the challenges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID will have multiple rows per day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no data for a particular day,then I want all the rows from previous day's data to be populated and have a new date as missing date and this needs to created until today&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaching the sample data which will help more&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, 05 Nov 2018 21:58:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110140#M17197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-05T21:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Fill the missing dates with the Previous days Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110141#M17198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you give an example output you are looking based on your sample attached?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 22:10:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110141#M17198</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-11-05T22:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Fill the missing dates with the Previous days Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110142#M17199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishwarth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer the highlighted rows in yellow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those are the missing dates in the source and I want the data to be copied&amp;nbsp; from 9/26 till 9/29 from the source data of 9/25.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again this should be dynamic logic for all such missing data.&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, 05 Nov 2018 22:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110142#M17199</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-05T22:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Fill the missing dates with the Previous days Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110143#M17200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone guide me with the right path?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 14:26:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110143#M17200</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-06T14:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Fill the missing dates with the Previous days Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110144#M17201</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;I would approach it in two steps (in the script):&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;1. &lt;EM&gt;&lt;STRONG&gt;join&lt;/STRONG&gt;&lt;/EM&gt; all dates (your field value is PERIOD) to the fact table which has the ID and Type fields&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2. use &lt;EM&gt;&lt;STRONG&gt;Peek()&lt;/STRONG&gt;&lt;/EM&gt; function to fetch the value of the previous record for the Limit and Required; in this Resident load you need not to forget the &lt;EM&gt;Order By&lt;/EM&gt; statement - in your case it will be something like &lt;EM&gt;Order By ID, Type, PERIOD asc&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Radovan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 15:33:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110144#M17201</guid>
      <dc:creator>RadovanOresky</dc:creator>
      <dc:date>2018-11-06T15:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Fill the missing dates with the Previous days Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110145#M17202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I am trying,but didn't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PERIOD, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Limit, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Required&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //ID&amp;amp;PERIOD&amp;amp;Type&amp;amp;Limit&amp;amp;Required AS KEY&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 Sample);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;TABLE:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATE (FLOOR (PERIOD), 'YYYYMMDD') AS KEY_PERIOD,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATE (FLOOR (PERIOD), 'YYYYMMDD') AS EFFECTIVE_DATE&lt;/P&gt;&lt;P&gt;&amp;nbsp; RESIDENT INLINE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE INLINE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MinMax:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // make min and max for every ID&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; //KEY,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Type, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Limit, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Required,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; min(PERIOD) as MinPeriod,&lt;/P&gt;&lt;P&gt;&amp;nbsp; today()-1 as MaxPeriod&lt;/P&gt;&lt;P&gt;Resident TABLE&lt;/P&gt;&lt;P&gt;group by ID,Type,Limit,Required;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // all required date between min and max (for every ID)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;//&amp;nbsp; Type, &lt;/P&gt;&lt;P&gt;//&amp;nbsp; Limit, &lt;/P&gt;&lt;P&gt;//&amp;nbsp; Required,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; date(MinPeriod -1 + IterNo()) as PERIOD&lt;/P&gt;&lt;P&gt;Resident MinMax&lt;/P&gt;&lt;P&gt;While IterNo() &amp;lt;= MaxPeriod - MinPeriod +1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table MinMax;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left join (TABLE2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // join with source table (in case you have to add some field from source)&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;//if(len(trim([Type]))=0,Previous([Type]),[Type]) as [Type1]&lt;/P&gt;&lt;P&gt;resident TABLE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table TABLE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RENAME table TABLE2 to TABLE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FINAL:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;PERIOD,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;If(LEN(TRIM(Type))=0 AND PERIOD = Peek(PERIOD),Peek(Type),Type) as Type,&lt;/P&gt;&lt;P&gt;If(LEN(TRIM(Limit))=0,Peek(Limit),Limit) as Limit,&lt;/P&gt;&lt;P&gt;If(LEN(TRIM(Required))=0,Peek(Required),Required) as Required&lt;/P&gt;&lt;P&gt;//and Limit= peek(Limit) and Limit= peek(Limit), Peek(Warehouse), Warehouse) as Warehouse&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Resident TABLE Order by PERIOD,ID; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE TABLE;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 19:02:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110145#M17202</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-06T19:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Fill the missing dates with the Previous days Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110146#M17203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you had a chance to review the sample output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 20:56:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110146#M17203</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-06T20:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Fill the missing dates with the Previous days Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110147#M17204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Dass, was super busy with some stuff so could not spend time. will check tomorrow if thats ok?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 21:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110147#M17204</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-11-06T21:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Fill the missing dates with the Previous days Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110148#M17205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe helpful:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3786"&gt;Generating Missing Data In QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 21:43:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110148#M17205</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2018-11-06T21:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Fill the missing dates with the Previous days Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110149#M17206</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;Please try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(isnull(date),previous(date),date) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 01:17:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110149#M17206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-07T01:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Fill the missing dates with the Previous days Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110150#M17207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;Unfortunately this is not working in my case&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 01:20:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110150#M17207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-07T01:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Fill the missing dates with the Previous days Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110151#M17208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No this doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already tested multiple options &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 01:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110151#M17208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-07T01:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Fill the missing dates with the Previous days Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110152#M17209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;My data has multiple rows per day and I want all the rows to be copied to the next day if it is missing.&lt;/P&gt;&lt;P&gt;Unfortunately this works only for the last row and previous rows were skipped&lt;/P&gt;&lt;P&gt;Any thoughts?&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>Wed, 07 Nov 2018 01:21:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110152#M17209</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-07T01:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Fill the missing dates with the Previous days Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110153#M17210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure. no issues&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 19:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110153#M17210</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-07T19:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Fill the missing dates with the Previous days Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110154#M17211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, this should work as you need. (I wrote it quickly so sorry if there are mistakes but I believe you can get the point &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sample:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;noconcatenate load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ID &amp;amp;''&amp;amp; num(PERIOD) &amp;amp;''&amp;amp; Type as _key_exists,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ID, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;PERIOD, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Type, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Limit, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Required&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;from&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[..\Downloads\Sample.xlsx]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(ooxml, embedded labels, table is Sample);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;t_missing_records:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;noconcatenate load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ID, Type, min(PERIOD) as PERIOD_start&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;resident&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sample&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;group by&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ID, Type;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;join_all_dates:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;join (t_missing_records) load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;t_min_date + iterno() as PERIOD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;while&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;t_min_date + iterno() &amp;lt;= t_max_date;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;noconcatenate load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;min( fieldvalue( 'PERIOD', recno() ) ) - 1 as t_min_date,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;max( fieldvalue( 'PERIOD', recno() ) ) as t_max_date&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;autogenerate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;fieldvaluecount( 'PERIOD' );&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;concatenate (Sample) load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ID, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;PERIOD, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Type&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;resident&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;t_missing_records&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;where&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;not exists( _key_exists, ID &amp;amp;''&amp;amp; num(PERIOD) &amp;amp;''&amp;amp; Type )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;and num(PERIOD) &amp;gt;= PERIOD_start;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table t_missing_records;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Final:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;noconcatenate load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ID, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;PERIOD,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Type,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if( ID = peek(ID) and Type = peek(Type), peek(Limit), Limit ) as Limit,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if( ID = peek(ID) and Type = peek(Type), peek(Required), Required ) as Required&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;resident&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sample&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;order by&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ID, Type, PERIOD asc;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table Sample;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't review your code but the problem might have been in the last IF statements with the peek().&lt;/P&gt;&lt;P&gt;Hope it will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Radovan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 15:08:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110154#M17211</guid>
      <dc:creator>RadovanOresky</dc:creator>
      <dc:date>2018-11-08T15:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Fill the missing dates with the Previous days Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110155#M17212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Radovan&lt;/P&gt;&lt;P&gt;Thanks for the guidance.&lt;/P&gt;&lt;P&gt;The code works perfectly fine with the data sample.&lt;/P&gt;&lt;P&gt;However this doesn't work when we add the new data.&lt;/P&gt;&lt;P&gt;Please refer the highlighted rows and the output in the right side.&lt;/P&gt;&lt;P&gt;This code create multiple records based on the &lt;EM style="color: #666666; font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;_key_exists.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The final output should be exactly as of previous day irrespective of the data changes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Is that possible?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217888_Screenshot.png" style="height: 283px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 15:43:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110155#M17212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-08T15:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Fill the missing dates with the Previous days Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110156#M17213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh, yeah you're right, I missed that.&lt;/P&gt;&lt;P&gt;Well a quick fix would be to change the last resident load like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Final:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;noconcatenate load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ID, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;PERIOD,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Type,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Limit,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Required,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if( isnull(Limit) and ID = peek(ID) and Type = peek(Type), peek(Limit_new), Limit ) as Limit_new,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if( isnull(Required) and ID = peek(ID) and Type = peek(Type), peek(Required_new), Required ) as Required_new&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;resident&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sample&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;order by&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ID, Type, PERIOD asc;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the "_new" fields will now replicate the previous number if there is NULL, otherwise they will include the source number.&lt;/P&gt;&lt;P&gt;Would this do what you need?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Radovan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 17:29:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110156#M17213</guid>
      <dc:creator>RadovanOresky</dc:creator>
      <dc:date>2018-11-08T17:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Fill the missing dates with the Previous days Value</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110157#M17214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Radovan,&lt;/P&gt;&lt;P&gt;This should work,&lt;/P&gt;&lt;P&gt;Let me play around and confirm so everyone has the right answer&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>Thu, 08 Nov 2018 18:45:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-the-missing-dates-with-the-Previous-days-Value/m-p/110157#M17214</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-08T18:45:49Z</dc:date>
    </item>
  </channel>
</rss>

