<?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: How to fill missing data from an SQL source in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-fill-missing-data-from-an-SQL-source/m-p/580964#M215813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;SCRIPT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Region_ID, Value, Month, Product&lt;/P&gt;&lt;P&gt;ABC, 348750, 201402, Fixed Net&lt;/P&gt;&lt;P&gt;ABC, 467556, 201402, Mobile&lt;/P&gt;&lt;P&gt;DEF, 45545, 201402, Fixed Net&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tmp: &lt;/P&gt;&lt;P&gt;noconcatenate load distinct&amp;nbsp; Region_ID, Month Resident Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;join (Tmp)&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Product&lt;/P&gt;&lt;P&gt;Fixed Net&lt;/P&gt;&lt;P&gt;Mobile&lt;/P&gt;&lt;P&gt;]; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left join (Tmp) load * Resident Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESULT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="318"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="75"&gt;Region_ID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="97"&gt;Value&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="78"&gt;Month&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="68"&gt;Product&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;ABC&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;348750&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;201402&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Fixed Net&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;ABC&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;467556&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;201402&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Mobile&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;DEF&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;45545&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;201402&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Fixed Net&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;DEF&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;201402&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Mobile&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Feb 2014 11:12:04 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2014-02-13T11:12:04Z</dc:date>
    <item>
      <title>How to fill missing data from an SQL source</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fill-missing-data-from-an-SQL-source/m-p/580959#M215808</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 have a dashboard where I'm loading a data structure like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="311"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;Region_ID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Value&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Month&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="119"&gt;Product&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;ABC&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="64"&gt;348750&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="64"&gt;201402&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="119"&gt;Fixed Net&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;ABC&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="64"&gt;467556&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="64"&gt;201402&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="119"&gt;Mobile &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have two rows in the database per Region and month, one for each product. The problem is now, that for some&lt;/P&gt;&lt;P&gt;Regions, there is only one Product available (let's say Mobile) and the other entry does not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I create a dummy entry for those missing Product rows to always have two entries per Region and Month, e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 311px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;Region_ID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Value&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Month&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="119"&gt;Product&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;DEF&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="64"&gt;0 &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;(Dummy entry)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="64"&gt;201402&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="119"&gt;Fixed Net&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="64"&gt;DEF&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="64"&gt;45545&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="64"&gt;201402&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="119"&gt;Mobile &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 10:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fill-missing-data-from-an-SQL-source/m-p/580959#M215808</guid>
      <dc:creator />
      <dc:date>2014-02-13T10:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill missing data from an SQL source</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fill-missing-data-from-an-SQL-source/m-p/580960#M215809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know your goal but if it is to see you don't have any product according to date selection &lt;/P&gt;&lt;P&gt;I would say it is better to build your data model according your needs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 10:39:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fill-missing-data-from-an-SQL-source/m-p/580960#M215809</guid>
      <dc:creator />
      <dc:date>2014-02-13T10:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill missing data from an SQL source</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fill-missing-data-from-an-SQL-source/m-p/580961#M215810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you load the table you may set up a control for the field, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyTable:&lt;/P&gt;&lt;P&gt;Select&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;if(myProd is null, 'N.A.', myProd) as myNewProd&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you may reload the table and set the same control with Qlik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load myTable&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;if(isnull(myProd), ....&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 10:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fill-missing-data-from-an-SQL-source/m-p/580961#M215810</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-02-13T10:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill missing data from an SQL source</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fill-missing-data-from-an-SQL-source/m-p/580962#M215811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer. I think I made my issue not clear enough or I misinterpret your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is to have two rows per Region and Month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;" width="311"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="64"&gt;Region_ID&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="64"&gt;Value&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="64"&gt;Month&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="119"&gt;Product&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl64" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;" width="64"&gt;ABC&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="64"&gt;348750&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="64"&gt;201402&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="119"&gt;Fixed Net&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl64" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;" width="64"&gt;ABC&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="64"&gt;467556&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="64"&gt;201402&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="119"&gt;Mobile&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but for some Regions, there is only one row:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;" width="311"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="64"&gt;Region_ID&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="64"&gt;Value&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="64"&gt;Month&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="119"&gt;Product&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl64" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;" width="64"&gt;DEF&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="64"&gt;35475&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="64"&gt;201402&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="119"&gt;Fixed Net&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl64" height="20" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;" width="64"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="64"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="64"&gt;&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="119"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in these cases I would like to add a second row:&lt;/P&gt;&lt;P&gt;DEF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 201402&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mobile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 10:47:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fill-missing-data-from-an-SQL-source/m-p/580962#M215811</guid>
      <dc:creator />
      <dc:date>2014-02-13T10:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill missing data from an SQL source</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fill-missing-data-from-an-SQL-source/m-p/580963#M215812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Left join your table with another table made with only the products:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NewTable:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;" width="311"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="64"&gt;Region_ID&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="64"&gt;Value&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="64"&gt;Month&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="119"&gt;Product&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;from ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load distinct Product as myProduct&lt;/P&gt;&lt;P&gt;from ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way each row in the original table will be present for all the products you have.&lt;/P&gt;&lt;P&gt;At this point reload &lt;/P&gt;&lt;P&gt;NewTable and set a control (if) for existings values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 11:04:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fill-missing-data-from-an-SQL-source/m-p/580963#M215812</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-02-13T11:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill missing data from an SQL source</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fill-missing-data-from-an-SQL-source/m-p/580964#M215813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;SCRIPT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Region_ID, Value, Month, Product&lt;/P&gt;&lt;P&gt;ABC, 348750, 201402, Fixed Net&lt;/P&gt;&lt;P&gt;ABC, 467556, 201402, Mobile&lt;/P&gt;&lt;P&gt;DEF, 45545, 201402, Fixed Net&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tmp: &lt;/P&gt;&lt;P&gt;noconcatenate load distinct&amp;nbsp; Region_ID, Month Resident Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;join (Tmp)&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Product&lt;/P&gt;&lt;P&gt;Fixed Net&lt;/P&gt;&lt;P&gt;Mobile&lt;/P&gt;&lt;P&gt;]; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left join (Tmp) load * Resident Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESULT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="318"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="75"&gt;Region_ID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="97"&gt;Value&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="78"&gt;Month&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="68"&gt;Product&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;ABC&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;348750&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;201402&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Fixed Net&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;ABC&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;467556&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;201402&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Mobile&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;DEF&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;45545&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;201402&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Fixed Net&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;DEF&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;201402&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Mobile&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 11:12:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fill-missing-data-from-an-SQL-source/m-p/580964#M215813</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-02-13T11:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill missing data from an SQL source</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fill-missing-data-from-an-SQL-source/m-p/580965#M215814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is working fine, thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additional question:&lt;/P&gt;&lt;P&gt;For my example, I skipped some additional fields like Team_ID. &lt;/P&gt;&lt;P&gt;Is it possible to copy the Team_ID value for DEF from the existing Fixed Net row&amp;nbsp; to the newly created Mobile row? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 12:08:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fill-missing-data-from-an-SQL-source/m-p/580965#M215814</guid>
      <dc:creator />
      <dc:date>2014-02-13T12:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill missing data from an SQL source</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fill-missing-data-from-an-SQL-source/m-p/580966#M215815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes just add term_id coloum in&lt;/P&gt;&lt;P&gt;Tmp:&lt;/P&gt;&lt;P&gt;noconcatenate&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Region_ID&lt;/P&gt;&lt;P&gt;Month&lt;/P&gt;&lt;P&gt;Term_ID&lt;/P&gt;&lt;P&gt;resident&lt;/P&gt;&lt;P&gt;Source;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 12:13:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fill-missing-data-from-an-SQL-source/m-p/580966#M215815</guid>
      <dc:creator>rohit214</dc:creator>
      <dc:date>2014-02-13T12:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to fill missing data from an SQL source</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fill-missing-data-from-an-SQL-source/m-p/580967#M215816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added one row and one column&amp;nbsp; to your data (bold) to check&lt;/P&gt;&lt;P&gt;look at the comments in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Region_ID, Value, Month, Product, &lt;STRONG&gt;Team_ID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ABC, 348750, 201402, Fixed Net, 1&lt;/P&gt;&lt;P&gt;ABC, 467556, 201402, Mobile, 2&lt;/P&gt;&lt;P&gt;DEF, 45545, 201402, Fixed Net, 3&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GHI, 12345, 201402, Mobile, 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tmp:&lt;/P&gt;&lt;P&gt;noconcatenate load distinct&amp;nbsp; Region_ID, Month Resident Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;join (Tmp)&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Product&lt;/P&gt;&lt;P&gt;Fixed Net&lt;/P&gt;&lt;P&gt;Mobile&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left join (Tmp) load * Resident Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// read Tmp and fill Team_ID when missing &lt;/P&gt;&lt;P&gt;// why order by ......?; because with peek I can peek the previous record value &lt;/P&gt;&lt;P&gt;// but I need to order the rows so when I find a null Team_ID I can peek the previuos Team_ID (not null)&lt;/P&gt;&lt;P&gt;// with same Region .Month&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;NoConcatenate load&lt;/P&gt;&lt;P&gt;Region_ID,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(len(trim(Value))=0, 0, Value) as Value&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;Month, Product, Team_ID,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(len(trim(Team_ID))=0, peek(Team_ID), Team_ID)&lt;/STRONG&gt; as New_Team_ID&lt;/P&gt;&lt;P&gt;Resident Tmp&lt;/P&gt;&lt;P&gt;order by Region_ID,&amp;nbsp; Month, Value desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Source;&lt;/P&gt;&lt;P&gt;DROP Table Tmp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 12:41:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fill-missing-data-from-an-SQL-source/m-p/580967#M215816</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-02-13T12:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill missing data from an SQL source</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fill-missing-data-from-an-SQL-source/m-p/580968#M215817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Region_ID,&lt;/P&gt;&lt;P&gt;Value,&lt;/P&gt;&lt;P&gt;Month,&lt;/P&gt;&lt;P&gt;Product,&lt;/P&gt;&lt;P&gt;Term_ID&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;xyz.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;join&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Region_ID,&lt;/P&gt;&lt;P&gt;Month,&lt;/P&gt;&lt;P&gt;Product&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as Product_Test,&lt;/P&gt;&lt;P&gt;Term_ID&lt;/P&gt;&lt;P&gt;If(Count(Region_ID)='1' and Product='Mobile','Fixed Net','Mobile') as Product&lt;/P&gt;&lt;P&gt;resident Table1 group by Region_ID,Month,Product,Term_ID;&lt;/P&gt;&lt;P&gt;Drop Field Product_Test;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 12:43:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fill-missing-data-from-an-SQL-source/m-p/580968#M215817</guid>
      <dc:creator>rohit214</dc:creator>
      <dc:date>2014-02-13T12:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill missing data from an SQL source</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fill-missing-data-from-an-SQL-source/m-p/580969#M215818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but this is not necessary, I guess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Team_Id is always the same for a specific region&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Region_ID, Value, Month, Product, Team_ID&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ABC, 348750, 201402, Fixed Net, &lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ABC, 467556, 201402, Mobile, &lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DEF, 45545, 201402, Fixed Net, 2&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;So for the missing Mobile row of DEF, the team_id needs to be 2, too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 12:48:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fill-missing-data-from-an-SQL-source/m-p/580969#M215818</guid>
      <dc:creator />
      <dc:date>2014-02-13T12:48:31Z</dc:date>
    </item>
  </channel>
</rss>

