<?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 link two fields from one table to another ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-one-table-to-another/m-p/319011#M708877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Josue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you post your app here it will help us to see your situation more clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Sep 2011 19:24:26 GMT</pubDate>
    <dc:creator>Jason_Michaelides</dc:creator>
    <dc:date>2011-09-06T19:24:26Z</dc:date>
    <item>
      <title>How to link two fields from one table to another ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-one-table-to-another/m-p/319005#M708871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table of Location, with the Fields ID_Location ,Info_Location and so do on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I have another table, about routes, with the fields ID_Origin_Location, ID_Destination_Location, and Distance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, I need to get the info of the location using the IDs, of&amp;nbsp; the Origin Location and the Destination Location, &lt;/P&gt;&lt;P&gt;but if I use the same names for the ID fields in the load script, Qlikview complains about cyclic reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I solve that ??&amp;nbsp; Any help is much appreciated !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !!&lt;/P&gt;&lt;P&gt;Josué&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2011 19:28:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-one-table-to-another/m-p/319005#M708871</guid>
      <dc:creator />
      <dc:date>2011-09-01T19:28:15Z</dc:date>
    </item>
    <item>
      <title>How to link two fields from one table to another ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-one-table-to-another/m-p/319006#M708872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest that you consider the possibility to join the two tables into one table.If that is not a good option for you then just add a keyfiled to the tables and rename the identical field on at least one of the table to avoid the association. The principle below should be applicable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1 &amp;amp; F2 as KeyField,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1 as T1.F1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F2 as T1.F2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F3&lt;/P&gt;&lt;P&gt;FROM file.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T2:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1 &amp;amp; F2 as KeyField,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1 as T2.F1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F2 as T2.F2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F4&lt;/P&gt;&lt;P&gt;FROM anotherfile.qvd; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2011 20:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-one-table-to-another/m-p/319006#M708872</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-09-01T20:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to link two fields from one table to another ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-one-table-to-another/m-p/319007#M708873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure I understood.&amp;nbsp; Let's say you currently have this structure and data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ID_Origin_Location, ID_Destination_Location, Distance&lt;BR /&gt;1, 2, 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ID_Location, Info_Location&lt;BR /&gt;1, Bob's House&lt;BR /&gt;2, Carla's House&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing you could do is duplicate the location table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ID_Origin_Location, ID_Destination_Location, Distance&lt;BR /&gt;1, 2, 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ID_Origin_Location, Info_Origin_Location&lt;BR /&gt;1, Bob's House&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2, Carla's House&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ID_Destination_Location, Info_Destination_Location&lt;BR /&gt;1, Bob's House&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2, Carla's House&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A different thing you could do is convert location columns into location rows on a new table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ID_Route, Distance&lt;BR /&gt;1, 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ID_Route, Location_Type, ID_Location&lt;BR /&gt;1, Origin, 1&lt;BR /&gt;1, Destination, 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ID_Location, Info_Location&lt;BR /&gt;1, Bob's House&lt;BR /&gt;2, Carla's House&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both approaches are useful in different ways.&amp;nbsp; It just depends on how you want to interact with your data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2011 01:07:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-one-table-to-another/m-p/319007#M708873</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-09-02T01:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to link two fields from one table to another ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-one-table-to-another/m-p/319008#M708874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the first approach is not good, because of the huge number of records I have. &lt;/P&gt;&lt;P&gt;I'll try the second one here. I'll let you know if it worked for me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for all your help, people !!&lt;/P&gt;&lt;P&gt;Josué&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2011 11:31:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-one-table-to-another/m-p/319008#M708874</guid>
      <dc:creator />
      <dc:date>2011-09-02T11:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to link two fields from one table to another ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-one-table-to-another/m-p/319009#M708875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wouldn't worry about the huge number of records in the first method, except possibly in terms of load time.&amp;nbsp; QlikView's compression should in theory mean that the cloned table takes almost no memory at all.&amp;nbsp; As far at the load goes, I'd hope that your table of locations loads from a QVD.&amp;nbsp; Do both loads from the QVD using an optimized load, and the added time should be rather small, even if you have ten million locations you're managing.&amp;nbsp; The below should give you optimized loads.&amp;nbsp; I've also reduced the tables to only the required rows, which might help a little with load time and memory, and is a good idea regardless so that your list boxes don't advertise origins or destinations that don't exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Origins:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ID_Location as ID_Origin_Location&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,Info_Location as Info_Origin_Location&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FROM Location.qvd (QVD)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;WHERE exists(ID_Origin_Location,ID_Location)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Destinations:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ID_Location as ID_Destination_Location&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,Info_Location as Info_Destination_Location&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FROM Location.qvd (QVD)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;WHERE exists(ID_Destination_Location,ID_Location)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I indicated, what method you use is more a matter of how you want to interact with your data.&amp;nbsp; Expanding on that a little, with the first method, you can easily pose a query like "Show me all data associated with the route that goes from Bob's House to Carla's House".&amp;nbsp; You can't do that easily with the second method.&amp;nbsp; But in the second method, you can easily pose a query like "Show me all data associated with Bob's House, regardless of whether the route starts or ends there".&amp;nbsp; You can't do that easily with the first method.&amp;nbsp; Combining both allows you to pose both queries easily, but having three different location fields could get confusing for your users.&amp;nbsp; I've generally used one or the other approach, not both, but I HAVE done both in the same application before (where my users are fairly sophisticated data analysts already).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2011 16:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-one-table-to-another/m-p/319009#M708875</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-09-02T16:34:08Z</dc:date>
    </item>
    <item>
      <title>How to link two fields from one table to another ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-one-table-to-another/m-p/319010#M708876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried both solutions, but the problem is, I loose the connection with other tables.&lt;/P&gt;&lt;P&gt;For example, one of the tables is about Products, with the following fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID_Product, Info_Product, ID_Location&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And another table about &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;Product&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;transformation, with the fields:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;IDTransf, ID_Product_Input, ID_Product_Output, Input_amount, Output_amount&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;There are many Products as Input for the same Product as output, and many products for the same location.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I need to have a table showing the input products, output product and the Location of the Input and of the Output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for all your help,&lt;/P&gt;&lt;P&gt;Josué&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 19:05:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-one-table-to-another/m-p/319010#M708876</guid>
      <dc:creator />
      <dc:date>2011-09-06T19:05:33Z</dc:date>
    </item>
    <item>
      <title>How to link two fields from one table to another ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-one-table-to-another/m-p/319011#M708877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Josue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you post your app here it will help us to see your situation more clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 19:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-one-table-to-another/m-p/319011#M708877</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2011-09-06T19:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to link two fields from one table to another ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-one-table-to-another/m-p/319012#M708878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table is what I need to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Josué&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 19:44:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-one-table-to-another/m-p/319012#M708878</guid>
      <dc:creator />
      <dc:date>2011-09-06T19:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to link two fields from one table to another ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-one-table-to-another/m-p/319013#M708879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've removed the Locations of the table. &lt;/P&gt;&lt;P&gt;If I solve the problem with the input/output products, I think I can solve the other things.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 19:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-one-table-to-another/m-p/319013#M708879</guid>
      <dc:creator />
      <dc:date>2011-09-06T19:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to link two fields from one table to another ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-one-table-to-another/m-p/319014#M708880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why is the ID_Location on the Product table?&amp;nbsp; Does the Info_Product differ by location?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 00:35:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-link-two-fields-from-one-table-to-another/m-p/319014#M708880</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-09-07T00:35:14Z</dc:date>
    </item>
  </channel>
</rss>

