<?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: Filling in data on upload in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filling-in-data-on-upload/m-p/1113046#M462899</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is an excellent thread on this here&lt;/P&gt;&lt;P&gt;&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please remember to mark this as helpful or the correct answer if I have helped you or answered your question.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Aug 2016 07:40:08 GMT</pubDate>
    <dc:creator>adamdavi3s</dc:creator>
    <dc:date>2016-08-16T07:40:08Z</dc:date>
    <item>
      <title>Filling in data on upload</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-in-data-on-upload/m-p/1113045#M462898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am uploading data into Qlikview however the datasource does not have data for certain months.&amp;nbsp; I would like to duplicate the last months entry as a duplicate for the missing month end dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;If the datasource has the following entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;31/01/2016&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mary&lt;/P&gt;&lt;P&gt;30/04/2016&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like the file to duplicate the entry for January 2016 for February 2016 and March 2016 ie. create entries for the missing months with the last available months data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 07:15:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-in-data-on-upload/m-p/1113045#M462898</guid>
      <dc:creator />
      <dc:date>2016-08-16T07:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filling in data on upload</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-in-data-on-upload/m-p/1113046#M462899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is an excellent thread on this here&lt;/P&gt;&lt;P&gt;&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Please remember to mark this as helpful or the correct answer if I have helped you or answered your question.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 07:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-in-data-on-upload/m-p/1113046#M462899</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-08-16T07:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Filling in data on upload</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-in-data-on-upload/m-p/1113047#M462900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;EM style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Input:&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;Date, User&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;31/01/2016 ,&amp;nbsp;&amp;nbsp;&amp;nbsp; Mary&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;31/01/2016 ,&amp;nbsp;&amp;nbsp;&amp;nbsp; Max&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;30/04/2016 ,&amp;nbsp;&amp;nbsp;&amp;nbsp; John&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;30/04/2016 ,&amp;nbsp;&amp;nbsp;&amp;nbsp; Max&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;30/04/2016 ,&amp;nbsp;&amp;nbsp;&amp;nbsp; Sam&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;31/08/2016 ,&amp;nbsp;&amp;nbsp;&amp;nbsp; John&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;STRONG&gt;// get min max month&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; min(Date) as MinMonth,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; max(Date) as MaxMonth&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Input; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LET vMonth = peek('MinMonth');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LET vMaxMonth = peek('MaxMonth');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;trace vMonth=$(vMonth);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;trace vMaxMonth=$(vMaxMonth);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// month loop&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DO while vMonth &amp;lt;= vMaxMonth&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; LET vMonth2 = Date($(vMonth));&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; trace; trace ***** vMonth=$(vMonth) vMonth2=$(vMonth2);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; CurrentMonth: &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; NoConcatenate LOAD * &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Resident Input &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Where Date = '$(vMonth2)'; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; // current month missing, add rows from last month with data&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; IF NoOfRows('CurrentMonth') = 0 THEN&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace *** 0 rows in CurrentMonth;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Concatenate (Input) &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD date(Floor(MonthEnd($(vMonth)))) as Date, User &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident LastMonthWithData;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG style="font-size: 13.3333px;"&gt;// current month with rows, save in last month with data&lt;/STRONG&gt;&lt;EM&gt; &lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; ELSE&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace *** &amp;gt; 0 rows in CurrentMonth;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF NoOfRows('LastMonthWithData') &amp;gt;=0 THEN&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP TABLE LastMonthWithData;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LastMonthWithData: &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NoConcatenate LOAD * Resident CurrentMonth;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; ENDIF &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; DROP Table CurrentMonth;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Let vMonth = Floor(MonthEnd(AddMonths(vMonth, 1)));&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOOP&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table LastMonthWithData;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 08:25:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-in-data-on-upload/m-p/1113047#M462900</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-08-16T08:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Filling in data on upload</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-in-data-on-upload/m-p/1113048#M462901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day Adam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the response to my enquiry.  This was very helpful in terms of creating a calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However , I would like to only create month end dates in the master calendar.  In addition with regards to the peek function, how do I incorporate peeking of multiple fields from the previous dates entry for missing data.  Where in the script would I incorporate the peedk function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Veronica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 07:08:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-in-data-on-upload/m-p/1113048#M462901</guid>
      <dc:creator />
      <dc:date>2016-08-17T07:08:53Z</dc:date>
    </item>
  </channel>
</rss>

