<?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 Making relations with different tables based on data from another table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Making-relations-with-different-tables-based-on-data-from/m-p/333208#M493981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your time Luciano it worked like a charm as soon as I understood the logic behind it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for not selecting the answer as correct sooner, have had some internet connectivity problems, and thought that I had already done it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again and bye!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 May 2012 07:03:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-05T07:03:24Z</dc:date>
    <item>
      <title>Making relations with different tables based on data from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Making-relations-with-different-tables-based-on-data-from/m-p/333203#M493975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi people!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, here's the problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the model I'm trying to build there is a relation which I think is kind of complicated. &lt;STRONG&gt;Movement&lt;/STRONG&gt;, has a relation to &lt;STRONG&gt;Location &lt;/STRONG&gt;via the&lt;STRONG&gt; idUbicacionConsumo OR &lt;/STRONG&gt;the&lt;STRONG&gt; idUbicacionEntrega&lt;/STRONG&gt; fields....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the condition which establishes with which field is the former relation created, is &lt;STRONG&gt;%KEY_product_type &lt;/STRONG&gt; =&amp;gt; if it is 1 or 3, the relation is to be created with &lt;STRONG&gt;idUbicacionConsumo&lt;/STRONG&gt; (in the Movement table) and %KEY_location (in the Location table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the relation is to be created with &lt;STRONG&gt;idUbicacionEntrega&lt;/STRONG&gt; (in the Movement table) and %KEY_location (in the Location table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="13725" alt="trickyrelation.png" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/13725_trickyrelation.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for any time you can spare in this issue!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 20:55:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-relations-with-different-tables-based-on-data-from/m-p/333203#M493975</guid>
      <dc:creator />
      <dc:date>2012-05-02T20:55:04Z</dc:date>
    </item>
    <item>
      <title>Making relations with different tables based on data from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Making-relations-with-different-tables-based-on-data-from/m-p/333204#M493977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope this help you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Movement_tmp:&lt;/P&gt;&lt;P&gt;LOAD %KEY_movement,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %KEY_persona,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IdUbicacionConsumo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IdUbicacionEntrega&lt;/P&gt;&lt;P&gt;From XXXXX;&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;LOAD %KEY_movement,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %KEY_product&lt;/P&gt;&lt;P&gt;Resident Invoice_detail;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Movement:&lt;/P&gt;&lt;P&gt;LOAD %KEY_movement,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %KEY_persona,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(%KEY_product = 1 or %KEY_product = 3, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IdUbicacionConsumo, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IdUbicacionEntrega&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) as&amp;nbsp; %KEY_location&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IdUbicacionConsumo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IdUbicacionEntrega&lt;/P&gt;&lt;P&gt;Resident Movement_tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Movement_tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 21:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-relations-with-different-tables-based-on-data-from/m-p/333204#M493977</guid>
      <dc:creator />
      <dc:date>2012-05-02T21:31:25Z</dc:date>
    </item>
    <item>
      <title>Making relations with different tables based on data from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Making-relations-with-different-tables-based-on-data-from/m-p/333205#M493978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script cannot find the Movement_tmp, and in the FROM statement do i have to have the route where te qvd is located?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 21:51:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-relations-with-different-tables-based-on-data-from/m-p/333205#M493978</guid>
      <dc:creator />
      <dc:date>2012-05-02T21:51:58Z</dc:date>
    </item>
    <item>
      <title>Making relations with different tables based on data from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Making-relations-with-different-tables-based-on-data-from/m-p/333206#M493979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, in the FROM statement put the route to your qvd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Movement_tmp is the table created in first place. This table must be created after the table Invoice_detail because make a join with that table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Movement_tmp:&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;LOAD %KEY_movement,&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %KEY_persona,&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IdUbicacionConsumo,&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IdUbicacionEntrega&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;From XXXXX;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Left Join&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;LOAD %KEY_movement,&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %KEY_product&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Resident Invoice_detail;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial; min-height: 8pt; height: 8pt;"&gt;Later create the final table Movement. I forgot to put sentence "NoConcatenate".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Movement:&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;NoConcatenate&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;LOAD %KEY_movement,&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %KEY_persona,&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(%KEY_product = 1 or %KEY_product = 3,&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IdUbicacionConsumo,&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IdUbicacionEntrega&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) as&amp;nbsp; %KEY_location&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IdUbicacionConsumo,&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IdUbicacionEntrega&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Resident Movement_tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial; min-height: 8pt; height: 8pt;"&gt;After all drop temporary table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;DROP Table Movement_tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This must function. Sorry for my bad english.&lt;/P&gt;&lt;P&gt;Luciano.-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 22:12:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-relations-with-different-tables-based-on-data-from/m-p/333206#M493979</guid>
      <dc:creator />
      <dc:date>2012-05-02T22:12:16Z</dc:date>
    </item>
    <item>
      <title>Making relations with different tables based on data from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Making-relations-with-different-tables-based-on-data-from/m-p/333207#M493980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juan Manuel, could you solve your problems? In this case please mark this post as answered, because help other people who can have the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not solve your issue continue trying to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 14:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-relations-with-different-tables-based-on-data-from/m-p/333207#M493980</guid>
      <dc:creator />
      <dc:date>2012-05-04T14:57:29Z</dc:date>
    </item>
    <item>
      <title>Making relations with different tables based on data from another table</title>
      <link>https://community.qlik.com/t5/QlikView/Making-relations-with-different-tables-based-on-data-from/m-p/333208#M493981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your time Luciano it worked like a charm as soon as I understood the logic behind it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for not selecting the answer as correct sooner, have had some internet connectivity problems, and thought that I had already done it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again and bye!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 May 2012 07:03:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-relations-with-different-tables-based-on-data-from/m-p/333208#M493981</guid>
      <dc:creator />
      <dc:date>2012-05-05T07:03:24Z</dc:date>
    </item>
  </channel>
</rss>

