<?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 How to join table in this case? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-join-table-in-this-case/m-p/1356597#M416316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi all Qlikers,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Below is my data model and let me explain my situation:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I get Trade program outlet-list (Table 1), which includes list of the outlets of certain programs. DiscusKey means the combination of Distributor and Customer.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Distributor sales-out (Table 2) is somehow like Sales order report by outlet (Customer). Distributor ID in this table links to the distributor structure (Table 3) to generate data by Area/Region/State....&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG __jive_id="170345" alt="model.PNG" class="jive-image image-1" height="562" src="https://community.qlik.com/legacyfs/online/171087_model.PNG" style="font-size: 13.3333px; height: 562.139px; width: 604px;" width="604" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The Table 1 includes 100 customers, for example, but not all of those purchased any product in one month, for example, let's say 90 of those 100 are in Table 2.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Then if i summarize sales by Trade program by Area/Region..., it only contains 90 customers appearing in table 2. This is fair.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The problem is: How to join table 1 and table 2 to answer questions like:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How many outlets joined a certain trade program by Area/Region?&lt;/LI&gt;&lt;LI&gt;How many of them purchased?&lt;/LI&gt;&lt;/UL&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG __jive_id="170346" alt="Capture.PNG" class="jive-image image-2" height="249" src="https://community.qlik.com/legacyfs/online/171088_Capture.PNG" style="height: 248.539px; width: 783px;" width="783" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The outlets which did not purchased (Total Sales = 0) does not belong to any Area/Region/Distributor .. with this way of linking Distributor structure. (I must link this way, Distributor Structure should not be linked directly to Table 1)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I attached the QS app so that you guys can help me in the script. I also read this article but can not solve:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;A href="http://help.qlik.com/en-US/sense/3.1/Subsystems/Hub/Content/Scripting/ScriptPrefixes/Left.htm" title="http://help.qlik.com/en-US/sense/3.1/Subsystems/Hub/Content/Scripting/ScriptPrefixes/Left.htm"&gt;Left ‒ Qlik Sense&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thank you and sorry if my English is not good. Anyone needs further explain please comment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Jul 2017 05:58:55 GMT</pubDate>
    <dc:creator>nguyenviethung</dc:creator>
    <dc:date>2017-07-23T05:58:55Z</dc:date>
    <item>
      <title>How to join table in this case?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-join-table-in-this-case/m-p/1356597#M416316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi all Qlikers,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Below is my data model and let me explain my situation:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I get Trade program outlet-list (Table 1), which includes list of the outlets of certain programs. DiscusKey means the combination of Distributor and Customer.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Distributor sales-out (Table 2) is somehow like Sales order report by outlet (Customer). Distributor ID in this table links to the distributor structure (Table 3) to generate data by Area/Region/State....&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG __jive_id="170345" alt="model.PNG" class="jive-image image-1" height="562" src="https://community.qlik.com/legacyfs/online/171087_model.PNG" style="font-size: 13.3333px; height: 562.139px; width: 604px;" width="604" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The Table 1 includes 100 customers, for example, but not all of those purchased any product in one month, for example, let's say 90 of those 100 are in Table 2.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Then if i summarize sales by Trade program by Area/Region..., it only contains 90 customers appearing in table 2. This is fair.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The problem is: How to join table 1 and table 2 to answer questions like:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How many outlets joined a certain trade program by Area/Region?&lt;/LI&gt;&lt;LI&gt;How many of them purchased?&lt;/LI&gt;&lt;/UL&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG __jive_id="170346" alt="Capture.PNG" class="jive-image image-2" height="249" src="https://community.qlik.com/legacyfs/online/171088_Capture.PNG" style="height: 248.539px; width: 783px;" width="783" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The outlets which did not purchased (Total Sales = 0) does not belong to any Area/Region/Distributor .. with this way of linking Distributor structure. (I must link this way, Distributor Structure should not be linked directly to Table 1)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I attached the QS app so that you guys can help me in the script. I also read this article but can not solve:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;A href="http://help.qlik.com/en-US/sense/3.1/Subsystems/Hub/Content/Scripting/ScriptPrefixes/Left.htm" title="http://help.qlik.com/en-US/sense/3.1/Subsystems/Hub/Content/Scripting/ScriptPrefixes/Left.htm"&gt;Left ‒ Qlik Sense&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thank you and sorry if my English is not good. Anyone needs further explain please comment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Jul 2017 05:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-join-table-in-this-case/m-p/1356597#M416316</guid>
      <dc:creator>nguyenviethung</dc:creator>
      <dc:date>2017-07-23T05:58:55Z</dc:date>
    </item>
  </channel>
</rss>

