<?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 Related records / set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Related-records-set-analysis/m-p/474322#M177143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I frankly have no idea where to start with this, but in the past the brilliant minds at the community have helped me out, so here is where I turn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Obligatory but heart-felt flattery always works, right?&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table that has a reference to a separate record in the same table. In this case, the reference is to a prior record that is associated for some reason. (All this is handled in the SQL behind the scenes)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="149" style="border: 1px solid rgb(0, 0, 0); width: 468px; height: 150px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Data Fields...&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;RelatedID&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Lots of data here for 1001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1002&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Lots of data here for 1002&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1003&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Lots of data here for 1003&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1004&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Lots of data here for 1004&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I know that ID 1001 and 1003 are related, but the only way I know is because RelatedID contains a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish to compare the Datafields from 1001 with the Date fields from 1003, but I don't know how. Assume that I restrict my selections to 1003, how do I use the values of this table to get at the different data fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect that set analysis may be involved, but I'm at a loss as to how to proceed. Anybody done something like this and can point me towards a solution? Thanks in advance for any assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Dec 2013 18:23:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-11T18:23:14Z</dc:date>
    <item>
      <title>Related records / set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Related-records-set-analysis/m-p/474322#M177143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I frankly have no idea where to start with this, but in the past the brilliant minds at the community have helped me out, so here is where I turn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Obligatory but heart-felt flattery always works, right?&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table that has a reference to a separate record in the same table. In this case, the reference is to a prior record that is associated for some reason. (All this is handled in the SQL behind the scenes)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="149" style="border: 1px solid rgb(0, 0, 0); width: 468px; height: 150px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Data Fields...&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;RelatedID&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Lots of data here for 1001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1002&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Lots of data here for 1002&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1003&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Lots of data here for 1003&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1004&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Lots of data here for 1004&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I know that ID 1001 and 1003 are related, but the only way I know is because RelatedID contains a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish to compare the Datafields from 1001 with the Date fields from 1003, but I don't know how. Assume that I restrict my selections to 1003, how do I use the values of this table to get at the different data fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect that set analysis may be involved, but I'm at a loss as to how to proceed. Anybody done something like this and can point me towards a solution? Thanks in advance for any assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 18:23:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Related-records-set-analysis/m-p/474322#M177143</guid>
      <dc:creator />
      <dc:date>2013-12-11T18:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Related records / set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Related-records-set-analysis/m-p/474323#M177144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Rob&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about loading the data twice, first a plain simple load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The for the second load:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Assign a different QV table name than the first loaded table name&lt;/LI&gt;&lt;LI&gt;Rename [Related ID] to ID&lt;/LI&gt;&lt;LI&gt;Rename all the other required fields with a suffix of say &lt;EM&gt;Related&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These 2 resulting tables should then join on ID and from then on it should be possible to do what you are after in the dashboard or maybe more scripting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 19:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Related-records-set-analysis/m-p/474323#M177144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-11T19:31:03Z</dc:date>
    </item>
  </channel>
</rss>

