<?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 in missing dates till today in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fill-in-missing-dates-till-today/m-p/1556385#M440874</link>
    <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have similar case, where i want to show missing dates for any year or month selected.&lt;/P&gt;&lt;P&gt;for example if i select year 2019 and month april the missing dates should show with the values as 0 where there is no value...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Mar 2019 08:44:31 GMT</pubDate>
    <dc:creator>khanashique</dc:creator>
    <dc:date>2019-03-14T08:44:31Z</dc:date>
    <item>
      <title>Fill in missing dates till today</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-in-missing-dates-till-today/m-p/1052135#M353030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello dear Qlik developers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have trouble with generating and filling in missing dates in the table from startdate untill today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have in this example is 4 dates with start 2015-03-16 and price values which changes with those four dates.&lt;/P&gt;&lt;P&gt;Simply, the source contains article numbers, log date and price that changes on those dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is automatically generated dates for all days from min(date) to today()'s date. And also peek:ed price values.&lt;/P&gt;&lt;P&gt;A was looking around in Community for 2 days and tried many scripts. And none of them really worked, unfortunately.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SourceDataExample.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/111039_SourceDataExample.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 10:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-in-missing-dates-till-today/m-p/1052135#M353030</guid>
      <dc:creator>mariia_gridneva</dc:creator>
      <dc:date>2016-01-08T10:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Fill in missing dates till today</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-in-missing-dates-till-today/m-p/1052136#M353031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a general starting date (for example the earliest date for all products) or should the peeking just start from the earliest day &lt;EM&gt;for the current product&lt;/EM&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script solutions usually JOIN a calendar to all products, and then start to fill in the blanks. Problem with this approach is that some dates may be before the first line for some products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would certainly help creating a solution if you could post a more representative sample of your data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 17:28:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-in-missing-dates-till-today/m-p/1052136#M353031</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-01-08T17:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Fill in missing dates till today</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-in-missing-dates-till-today/m-p/1052137#M353032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;added some rows to che&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;ck with more than one artno&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;some h&lt;SPAN style="font-size: 13.3333px;"&gt;elp here &lt;/SPAN&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2928"&gt;How to populate a sparsely populated field&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SOURCE: &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load * inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ArtNo, LogDate, Price&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;57, 16/08/2015, 3.02&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;57, 13/09/2015, 3.8&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;57, 01/10/2015, 2.97&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;57, 23/11/2015, 3.15&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;5, 01/08/2015, 3.02&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;5, 03/08/2015, 3.8&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;5, 01/09/2015, 2.97&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;5, 03/09/2015, 3.15&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TempTable_Rates: &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate Load ArtNo, LogDate, Price Resident SOURCE ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MinMaxDate:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load ArtNo, Min(LogDate) as MinDate, Max(LogDate) as MaxDate resident TempTable_Rates&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Group By ArtNo;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Join (TempTable_Rates)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ArtNo,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Date(iterno()+MinDate) as LogDate &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident MinMaxDate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;While iterno()+MinDate &amp;lt;= MaxDate;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Rates:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate Load ArtNo, LogDate, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If( IsNull( Price ), Peek( Price ), Price ) as Price&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident TempTable_Rates&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Order By ArtNo, LogDate ; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Drop Table MinMaxDate, TempTable_Rates;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 21:19:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-in-missing-dates-till-today/m-p/1052137#M353032</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-01-08T21:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Fill in missing dates till today</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-in-missing-dates-till-today/m-p/1052138#M353033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max,&lt;/P&gt;&lt;P&gt;You modified Cronström's script perfectly. I was "fighting" with his sample for a whole day and it did not work properly. &lt;/P&gt;&lt;P&gt;I am going to use your script, it would work flawless.&lt;/P&gt;&lt;P&gt;The only thing I changed was max(logdate) to today().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you a lot for help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jan 2016 10:25:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-in-missing-dates-till-today/m-p/1052138#M353033</guid>
      <dc:creator>mariia_gridneva</dc:creator>
      <dc:date>2016-01-09T10:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Fill in missing dates till today</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-in-missing-dates-till-today/m-p/1556385#M440874</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have similar case, where i want to show missing dates for any year or month selected.&lt;/P&gt;&lt;P&gt;for example if i select year 2019 and month april the missing dates should show with the values as 0 where there is no value...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 08:44:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-in-missing-dates-till-today/m-p/1556385#M440874</guid>
      <dc:creator>khanashique</dc:creator>
      <dc:date>2019-03-14T08:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Fill in missing dates till today</title>
      <link>https://community.qlik.com/t5/QlikView/Fill-in-missing-dates-till-today/m-p/1560961#M441294</link>
      <description>&lt;P&gt;See the following Design Blog post regarding Master Calendar done by Henric Cronstrom, believe this is for what you are looking:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-Master-Calendar/ba-p/1471527" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-Master-Calendar/ba-p/1471527&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 19:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fill-in-missing-dates-till-today/m-p/1560961#M441294</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-03-25T19:48:33Z</dc:date>
    </item>
  </channel>
</rss>

