<?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: Connecting two different tables from XML file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Connecting-two-different-tables-from-XML-file/m-p/1096575#M640737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cool man&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Mar 2016 16:25:28 GMT</pubDate>
    <dc:creator>Chanty4u</dc:creator>
    <dc:date>2016-03-17T16:25:28Z</dc:date>
    <item>
      <title>Connecting two different tables from XML file</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-two-different-tables-from-XML-file/m-p/1096572#M640734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to connect info from one table to another from a XML-file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have several XML-files with similar structure, which I want import to clickview:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XML-file example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Register&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Details&amp;gt;&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;lt;Car&amp;gt; Toyota &amp;lt;/Car&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Details&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Fuel&amp;gt;&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;lt;result Station="Shell" SampleDate="211215" ControlNoCd="1122332 "&amp;gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&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;lt;Amount&amp;gt; 213L &amp;lt;/Amount&amp;gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&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; &lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;Quality&amp;gt; A4 &amp;lt;/Quality&amp;gt;&lt;/SPAN&gt;&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;lt;/result&amp;gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;result Station="Statoil" SampleDate="191115" ControlNoCd="1156332 "&amp;gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&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;lt;Amount&amp;gt; 140L &amp;lt;/Amount&amp;gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&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; &lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;Quality&amp;gt; A1 &amp;lt;/Quality&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/result&amp;gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;result Station="Chevron" SampleDate="011215" ControlNoCd="367332 "&amp;gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&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;lt;Amount&amp;gt; 300L &amp;lt;/Amount&amp;gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&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; &lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;Quality&amp;gt; A1 &amp;lt;/Quality&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/result&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Fuel&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/Register&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is only one &amp;lt;Car&amp;gt; for each file - so this is unique for each file - all the info under result is connected to this specific car. Next file can be the same car, or another one. Problem is that I want to connect Details table with all the info under the Fuel table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to write it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Details/Car] as Car,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Fuel/Result/Station] as Station,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;SPAN style="font-size: 13.3333px;"&gt;Fuel/&lt;/SPAN&gt;Result/SampleDate] as SampleDate,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;SPAN style="font-size: 13.3333px;"&gt;Fuel/&lt;/SPAN&gt;Result/ControlNoCd] as ControlNoCd,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;[&lt;SPAN style="font-size: 13.3333px;"&gt;Fuel/&lt;/SPAN&gt;Result/Amount] as Amount,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;[&lt;SPAN style="font-size: 13.3333px;"&gt;Fuel/&lt;/SPAN&gt;Result/Quality] as Quality,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_report_16926E6E9269865A&amp;nbsp;&amp;nbsp;&amp;nbsp; // Key for this table: register&lt;/P&gt;&lt;P&gt;FROM &lt;H&gt; (XmlSimple, Table is [Register]);&lt;/H&gt;&lt;/P&gt;&lt;P&gt;// End of [*.xml] LOAD statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I meet with this script, is that only the first Result-node is displayed. After it is finished with results from station "shell", it does not take out the values from "Statoil" and "Chevron"... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has to be said, I am no programmer, but trying to make a simple script to implement it in qlikview with my limited knowledge... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 21:38:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-two-different-tables-from-XML-file/m-p/1096572#M640734</guid>
      <dc:creator />
      <dc:date>2016-03-04T21:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting two different tables from XML file</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-two-different-tables-from-XML-file/m-p/1096573#M640735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try dis&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/359991"&gt;Re: how to read xml files in a loop&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 12:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-two-different-tables-from-XML-file/m-p/1096573#M640735</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-03-17T12:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting two different tables from XML file</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-two-different-tables-from-XML-file/m-p/1096574#M640736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. Not exactly same problem, but it forwarded me to a good solution. Key is to use filename as id, and connect the tables. If you insert on xml file, and replace filename with *.xml, it will go through all the nodes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/30336"&gt;Add a unique id field for each xml file loaded for each row&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 15:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-two-different-tables-from-XML-file/m-p/1096574#M640736</guid>
      <dc:creator />
      <dc:date>2016-03-17T15:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting two different tables from XML file</title>
      <link>https://community.qlik.com/t5/QlikView/Connecting-two-different-tables-from-XML-file/m-p/1096575#M640737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cool man&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 16:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Connecting-two-different-tables-from-XML-file/m-p/1096575#M640737</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-03-17T16:25:28Z</dc:date>
    </item>
  </channel>
</rss>

