<?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 empty fields based on values stored in joined table? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-fill-empty-fields-based-on-values-stored-in-joined-table/m-p/963126#M949743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should avoid having more than one column name being the key between two tables. Links between tables in QlikView should only be made using one (1) column. In your example you have the columns OfferID and ProductID in both tables and this will create a synthetic key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, have you checked that you actually have data in your RealSales table for OfferID A1 in combination with ProductID 112?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Dec 2015 14:59:55 GMT</pubDate>
    <dc:creator>henrikalmen</dc:creator>
    <dc:date>2015-12-16T14:59:55Z</dc:date>
    <item>
      <title>How to fill empty fields based on values stored in joined table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fill-empty-fields-based-on-values-stored-in-joined-table/m-p/963125#M949742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe you know a solution for the problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables, which are joined. Lets say that there is fields: ProductID, PotentialSales, Sales, Shop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PotentialSales:&lt;/P&gt;&lt;P&gt;OfferID&lt;/P&gt;&lt;P&gt;ProductID&lt;BR /&gt;PotentialSales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RealSales:&lt;/P&gt;&lt;P&gt;OfferID&lt;BR /&gt;ProductID&lt;BR /&gt;Sales&lt;BR /&gt;ShopID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, after joining these two tables, I have situation, that when there is no productid in RealSales table, than there is no ShopID as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;OfferID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ProductID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;PotentialSales&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Sales&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ShopID&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;111&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;500&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;ABC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;112&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;150&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;113&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;ABC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;111&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;333&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;113&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;554&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;410&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;FBI&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK, this is understandable, but I want to somehow copy ShopID to empty fields to calculate PotentialSales for all Shops?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 10:12:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fill-empty-fields-based-on-values-stored-in-joined-table/m-p/963125#M949742</guid>
      <dc:creator />
      <dc:date>2015-12-07T10:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill empty fields based on values stored in joined table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-fill-empty-fields-based-on-values-stored-in-joined-table/m-p/963126#M949743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should avoid having more than one column name being the key between two tables. Links between tables in QlikView should only be made using one (1) column. In your example you have the columns OfferID and ProductID in both tables and this will create a synthetic key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, have you checked that you actually have data in your RealSales table for OfferID A1 in combination with ProductID 112?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 14:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-fill-empty-fields-based-on-values-stored-in-joined-table/m-p/963126#M949743</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2015-12-16T14:59:55Z</dc:date>
    </item>
  </channel>
</rss>

