<?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 Link To One Table Twice in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Link-To-One-Table-Twice/m-p/216850#M715273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put another way, YES, a common solution here is to have two customer tables. One would be keyed by Cust_No, the other by Bill_Cust. To avoid the inefficiency of loading from your database twice, you load the Billing Customers table from the already-loaded Customers table. Here's one possible approach (untested):&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Orders:&lt;BR /&gt;LOAD&lt;BR /&gt; Order_No&lt;BR /&gt;,Cust_No&lt;BR /&gt;,Bill_Cust&lt;BR /&gt;&amp;lt;from your source&amp;gt;&lt;BR /&gt;;&lt;BR /&gt;[Sold to Customers]: // At this point, table includes ALL customers&lt;BR /&gt;LOAD&lt;BR /&gt; Cust_No&lt;BR /&gt;,Cust_Name&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;from your source&amp;gt;&lt;BR /&gt;;&lt;BR /&gt;[Billing Customers]:&lt;BR /&gt;LOAD&lt;BR /&gt; Cust_No as Bill_Cust&lt;BR /&gt;,Cust_Name as Bill_Cust_Name&lt;BR /&gt;...&lt;BR /&gt;RESIDENT [Sold to Customers]&lt;BR /&gt;WHERE EXISTS(Bill_Cust,Cust_No) // This restricts the table to only customers used as billing customers&lt;BR /&gt;;&lt;BR /&gt;INNER JOIN ([Sold to Customers]) // This removes everything but sold to customers from the table&lt;BR /&gt;LOAD distinct Cust_No&lt;BR /&gt;RESIDENT [Orders]&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jan 2010 22:35:00 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-01-19T22:35:00Z</dc:date>
    <item>
      <title>Link To One Table Twice</title>
      <link>https://community.qlik.com/t5/QlikView/Link-To-One-Table-Twice/m-p/216848#M715271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to Qlikview scripting and stuck on an issue. I have included a simplified diagram. In the Orders table I need to obtain Customer information for both the Cust_No (sold to cust) and Bill_Cust fields in the Orders table.. I could load the customer table again, naming it Bill_Customers but that seems quite inefficient. What is the best way to handle this situation? Thanks.&lt;/P&gt;&lt;P&gt;&lt;IMG border="0" height="206" src="https://community.qlik.com/resized-image.ashx/__size/550x400/__key/CommunityServer.Discussions.Components.Files/11/8030.export.bmp" width="402" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 20:44:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-To-One-Table-Twice/m-p/216848#M715271</guid>
      <dc:creator>mjt_childrens</dc:creator>
      <dc:date>2010-01-19T20:44:36Z</dc:date>
    </item>
    <item>
      <title>Link To One Table Twice</title>
      <link>https://community.qlik.com/t5/QlikView/Link-To-One-Table-Twice/m-p/216849#M715272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you can re-use a table using the resident sentence. Resident will load the data from the memory, so you don't need reload data from the source twice.&lt;/P&gt;&lt;P&gt;Just be careful with the name of columns (because in resident tables, the names of columns will be equal), your options are aliases or qualify the new table (and obviously unqualify the key field)&lt;/P&gt;&lt;P&gt;rgds and good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 21:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-To-One-Table-Twice/m-p/216849#M715272</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2010-01-19T21:02:36Z</dc:date>
    </item>
    <item>
      <title>Link To One Table Twice</title>
      <link>https://community.qlik.com/t5/QlikView/Link-To-One-Table-Twice/m-p/216850#M715273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put another way, YES, a common solution here is to have two customer tables. One would be keyed by Cust_No, the other by Bill_Cust. To avoid the inefficiency of loading from your database twice, you load the Billing Customers table from the already-loaded Customers table. Here's one possible approach (untested):&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Orders:&lt;BR /&gt;LOAD&lt;BR /&gt; Order_No&lt;BR /&gt;,Cust_No&lt;BR /&gt;,Bill_Cust&lt;BR /&gt;&amp;lt;from your source&amp;gt;&lt;BR /&gt;;&lt;BR /&gt;[Sold to Customers]: // At this point, table includes ALL customers&lt;BR /&gt;LOAD&lt;BR /&gt; Cust_No&lt;BR /&gt;,Cust_Name&lt;BR /&gt;...&lt;BR /&gt;&amp;lt;from your source&amp;gt;&lt;BR /&gt;;&lt;BR /&gt;[Billing Customers]:&lt;BR /&gt;LOAD&lt;BR /&gt; Cust_No as Bill_Cust&lt;BR /&gt;,Cust_Name as Bill_Cust_Name&lt;BR /&gt;...&lt;BR /&gt;RESIDENT [Sold to Customers]&lt;BR /&gt;WHERE EXISTS(Bill_Cust,Cust_No) // This restricts the table to only customers used as billing customers&lt;BR /&gt;;&lt;BR /&gt;INNER JOIN ([Sold to Customers]) // This removes everything but sold to customers from the table&lt;BR /&gt;LOAD distinct Cust_No&lt;BR /&gt;RESIDENT [Orders]&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 22:35:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-To-One-Table-Twice/m-p/216850#M715273</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-01-19T22:35:00Z</dc:date>
    </item>
    <item>
      <title>Link To One Table Twice</title>
      <link>https://community.qlik.com/t5/QlikView/Link-To-One-Table-Twice/m-p/216851#M715274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the information. I appreciate your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 01:26:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-To-One-Table-Twice/m-p/216851#M715274</guid>
      <dc:creator>mjt_childrens</dc:creator>
      <dc:date>2010-01-20T01:26:49Z</dc:date>
    </item>
  </channel>
</rss>

