<?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 missing date with previous available's day value in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Fill-missing-date-with-previous-value/m-p/1737675#M56421</link>
    <description>&lt;P&gt;may be this&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;TableA:
Load * Inline [
Product, Date, Amount
A, 12/13/2019, 500
A, 12/15/2019, 600
B, 12/13/2019, 227
B, 12/16/2019, 300 ];

Join(TableA)
Load Product,
     date(MinDate+IterNo()-1) as Date
While MinDate+IterNo()-1&amp;lt;=MaxDate;
Load Product,
     date(max(Date)) as MaxDate,
     date(min(Date)) as MinDate
Resident TableA
Group by Product;

T2:
NoConcatenate
Load Product, 
     Date, 
     if(IsNull(Amount),Peek(Amount),Amount) as Amount
Resident TableA
Order By Product,Date;

Drop Table TableA;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you have other fields in table and you want to fill the values then you need to include it using isnull. For eg. Description. You need to include it like below in above code&lt;/P&gt;&lt;P&gt;if(IsNull(Description),Peek(Description),Description) as Description&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2020-08-21 103050.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39394iD9EEAA5D249EA85B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Annotation 2020-08-21 103050.png" alt="Annotation 2020-08-21 103050.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Aug 2020 09:31:25 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-08-21T09:31:25Z</dc:date>
    <item>
      <title>Fill missing date with previous value</title>
      <link>https://community.qlik.com/t5/App-Development/Fill-missing-date-with-previous-value/m-p/1737666#M56420</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll like to achieve the output listed below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000"&gt;&lt;STRONG&gt;TableA:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000"&gt;&lt;STRONG&gt;Product, Date, Amount&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;A, 12/13/2019, 500&lt;/P&gt;&lt;P&gt;A, 12/15/2019, 600&lt;/P&gt;&lt;P&gt;B, 12/13/2019, 227&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000"&gt;&lt;STRONG&gt;Product, Date, Amount&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;A, 12/13/2019, 475&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;A, 12/14/2019, 475&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;A, 12/15/2019, 600&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;B, 12/13/2019, 227&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;B, 12/14/2019, 227&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Fill-missing-date-with-previous-value/m-p/1737666#M56420</guid>
      <dc:creator>gnmq</dc:creator>
      <dc:date>2021-12-20T21:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Fill missing date with previous available's day value</title>
      <link>https://community.qlik.com/t5/App-Development/Fill-missing-date-with-previous-value/m-p/1737675#M56421</link>
      <description>&lt;P&gt;may be this&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;TableA:
Load * Inline [
Product, Date, Amount
A, 12/13/2019, 500
A, 12/15/2019, 600
B, 12/13/2019, 227
B, 12/16/2019, 300 ];

Join(TableA)
Load Product,
     date(MinDate+IterNo()-1) as Date
While MinDate+IterNo()-1&amp;lt;=MaxDate;
Load Product,
     date(max(Date)) as MaxDate,
     date(min(Date)) as MinDate
Resident TableA
Group by Product;

T2:
NoConcatenate
Load Product, 
     Date, 
     if(IsNull(Amount),Peek(Amount),Amount) as Amount
Resident TableA
Order By Product,Date;

Drop Table TableA;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you have other fields in table and you want to fill the values then you need to include it using isnull. For eg. Description. You need to include it like below in above code&lt;/P&gt;&lt;P&gt;if(IsNull(Description),Peek(Description),Description) as Description&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2020-08-21 103050.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39394iD9EEAA5D249EA85B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Annotation 2020-08-21 103050.png" alt="Annotation 2020-08-21 103050.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 09:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Fill-missing-date-with-previous-value/m-p/1737675#M56421</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-08-21T09:31:25Z</dc:date>
    </item>
  </channel>
</rss>

