<?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 Relationships between key values ($Syn Tables and Circular References) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Relationships-between-key-values-Syn-Tables-and-Circular/m-p/1238924#M621157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SCENARIO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with animal details:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Animals:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LOAD Animal,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Age,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sex&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;FROM&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;[.\Animals.xlsx]&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The animals include Tigers and Bunnies. Due to a security breach, some of the tigers got into the Bunny enclosure and ate a few of the Bunnies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a second table that outlines who ate who;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ate:&lt;/P&gt;&lt;P&gt;LOAD Tiger_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bunny_ID&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[.\Animals_eat.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both Tiger_ID and Bunny_ID belong to the set of IDs present in the Animal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QUESTION&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create an association such that selecting an ID which belongs to a culprit tiger would display both the details about said tiger as well as the bunnies it consumed. Conversely, selecting an ID of a consumed bunny, would show information about the bunny as well as its murderer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the recommended approach to apply in the data loading script?&lt;/P&gt;&lt;P&gt;Do I need to break up the Animal table, such that Tigers have one table and Bunnies have another? That would not be ideal for all my other charts/metrics, but trying to make it work via other means has thus far yielded no positive results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;J.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Feb 2017 19:51:55 GMT</pubDate>
    <dc:creator>jwaligora</dc:creator>
    <dc:date>2017-02-21T19:51:55Z</dc:date>
    <item>
      <title>Relationships between key values ($Syn Tables and Circular References)</title>
      <link>https://community.qlik.com/t5/QlikView/Relationships-between-key-values-Syn-Tables-and-Circular/m-p/1238924#M621157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SCENARIO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with animal details:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Animals:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LOAD Animal,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Age,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sex&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;FROM&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;[.\Animals.xlsx]&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The animals include Tigers and Bunnies. Due to a security breach, some of the tigers got into the Bunny enclosure and ate a few of the Bunnies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a second table that outlines who ate who;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ate:&lt;/P&gt;&lt;P&gt;LOAD Tiger_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bunny_ID&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[.\Animals_eat.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both Tiger_ID and Bunny_ID belong to the set of IDs present in the Animal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QUESTION&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create an association such that selecting an ID which belongs to a culprit tiger would display both the details about said tiger as well as the bunnies it consumed. Conversely, selecting an ID of a consumed bunny, would show information about the bunny as well as its murderer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the recommended approach to apply in the data loading script?&lt;/P&gt;&lt;P&gt;Do I need to break up the Animal table, such that Tigers have one table and Bunnies have another? That would not be ideal for all my other charts/metrics, but trying to make it work via other means has thus far yielded no positive results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;J.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 19:51:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationships-between-key-values-Syn-Tables-and-Circular/m-p/1238924#M621157</guid>
      <dc:creator>jwaligora</dc:creator>
      <dc:date>2017-02-21T19:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Relationships between key values ($Syn Tables and Circular References)</title>
      <link>https://community.qlik.com/t5/QlikView/Relationships-between-key-values-Syn-Tables-and-Circular/m-p/1238925#M621158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is your data model looks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would request you to create two excels and then share and tell us with your expected out put?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even we can follow this approach to prove. Or we can create single file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Animals:&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD &lt;STRONG&gt;RowNo() as RowNo,&lt;/STRONG&gt;Animal,&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Age,&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sex&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[.\Animals.xlsx]&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Ate:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RowNo() as RowNo,&lt;/STRONG&gt;Tiger_ID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bunny_ID&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[.\Animals_eat.xlsx]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This will prove associate for your model&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Or&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Animals:&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Mapping&lt;/STRONG&gt; LOAD Animal,&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Age,&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sex&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[.\Animals.xlsx]&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Ate:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD Tiger_ID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bunny_ID&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[.\Animals_eat.xlsx]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Left Join(Ate)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Load Tiger_ID, Bunny_ID, ApplyMap('Animals',Animal) as Animal, ID, Age, Sex&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Resident Animals;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Drop Table Ate;&lt;/STRONG&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 02:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationships-between-key-values-Syn-Tables-and-Circular/m-p/1238925#M621158</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-02-22T02:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Relationships between key values ($Syn Tables and Circular References)</title>
      <link>https://community.qlik.com/t5/QlikView/Relationships-between-key-values-Syn-Tables-and-Circular/m-p/1238926#M621159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joanna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe so.&amp;nbsp; When loading table Ate to create new field [KEY} with composite key, format such as&amp;nbsp; 'Tiger_ID'&amp;amp;'Bunny_ID'. Then when loading table &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Animals&lt;/SPAN&gt; to create a similar field [KEY}. Each records of table &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Animals&lt;/SPAN&gt; check if the coincidence of the values of fields ID and&amp;nbsp; fields &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Tiger_ID&lt;/SPAN&gt; or &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Bunny_ID&lt;/SPAN&gt; in the table &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Ate&lt;/SPAN&gt;, in field [Key] table &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Animals&lt;/SPAN&gt; recorded the corresponding key &lt;SPAN style="font-size: 13.3333px;"&gt;'Tiger_ID'&amp;amp;'Bunny_ID'&lt;/SPAN&gt; format.&lt;/P&gt;&lt;P&gt;Thus both tables will be contacted as a result of a composite key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;This is an example script code&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;EM&gt;//create table Ate&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Ate:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;RecNo() as Tiger_ID,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;RecNo()*10 + 41 as Bunny_ID&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;AutoGenerate 5;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;EM&gt;//create a composite key for table Ate&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Left Join&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD*,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Tiger_ID&amp;amp;'|'&amp;amp;Bunny_ID as Key&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident Ate;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;EM&gt;//create temp Key Table&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;NoConcatenate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;TableKey:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If(IterNo()=1, Tiger_ID, Bunny_ID) as ID_Key,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Key&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident Ate&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;While IterNo()&amp;lt;=2;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;//create table Animals&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Animals:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD If(RecNo()&amp;lt;=50, 'Tiger'&amp;amp;RecNo(), 'Bunny'&amp;amp;RecNo()) as Animal,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RecNo() as ID,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Div(Rand()*10, 1) as Age,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Rand()&amp;gt;0.5, 'F', 'M') as Sex&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;AutoGenerate 100;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;//create a composite key for table Animals&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Left Join(Animals)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ID_Key as ID,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Key&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident TableKey;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;DROP Table TableKey;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Result&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG __jive_id="154033" alt="1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/154034_1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The data generated in the script automatically, so you can just copy the code at QlikView or Qlik Sense&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Andrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 03:00:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationships-between-key-values-Syn-Tables-and-Circular/m-p/1238926#M621159</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-02-22T03:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Relationships between key values ($Syn Tables and Circular References)</title>
      <link>https://community.qlik.com/t5/QlikView/Relationships-between-key-values-Syn-Tables-and-Circular/m-p/1238927#M621160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/218859"&gt;loveisfail&lt;/A&gt;‌, &lt;A href="https://community.qlik.com/qlik-users/150954"&gt;ahaahaaha&lt;/A&gt;‌!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for your suggestions. Sorry for not posting the source data. I'm adding it now for reference. Part of the problem is that it could be a one-to-many mapping, and quite possibly even a many-to-many mapping (it was a bloodbath). I opted for a somewhat simplistic solution of dumping everything into a single table. It isn't exactly the level of automation I hoped for, but I can work around it (and chances are what I had in mind would by definition generate a circular reference). I have two toggle buttons 'I ate it.' and 'It ate me.' that filter out each type of data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...Andrey, your implementation is an excellent, concise study of AutoGenerate, IterNo(), RecNo() and a few other QV concepts. I'll be starring at it for a while.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Animals:&lt;/P&gt;&lt;P&gt;LOAD Animal, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Age, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sex&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[.\Animals.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join &lt;/P&gt;&lt;P&gt;LOAD Tiger_ID as ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bunny_ID&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[.\Animals_eat.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join &lt;/P&gt;&lt;P&gt;LOAD Bunny_ID as ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tiger_ID&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[.\Animals_eat.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 22:40:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationships-between-key-values-Syn-Tables-and-Circular/m-p/1238927#M621160</guid>
      <dc:creator>jwaligora</dc:creator>
      <dc:date>2017-02-23T22:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Relationships between key values ($Syn Tables and Circular References)</title>
      <link>https://community.qlik.com/t5/QlikView/Relationships-between-key-values-Syn-Tables-and-Circular/m-p/1238928#M621161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Hi Joanna,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;We take into account your remark about the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;a many-to-many mapping&lt;/SPAN&gt; to create a composite key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, the script code for your data may be as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//load Animals_eat&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;TableAnimals_eat:&lt;/P&gt;&lt;P&gt;LOAD Tiger_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bunny_ID&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Animals_eat.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//create composite key&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Tiger_ID,&lt;/P&gt;&lt;P&gt;Tiger_ID&amp;amp;'|'&amp;amp;Concat(Bunny_ID, '|') as KeyEat&lt;/P&gt;&lt;P&gt;Resident TableAnimals_eat&lt;/P&gt;&lt;P&gt;Group By Tiger_ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//create temp Key Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;TableKey:&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;If(IterNo()=1, Tiger_ID, Bunny_ID) as ID_Key,&lt;/P&gt;&lt;P&gt;KeyEat&lt;/P&gt;&lt;P&gt;Resident TableAnimals_eat&lt;/P&gt;&lt;P&gt;While IterNo()&amp;lt;=2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//load Animals&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Animals:&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;LOAD Animal,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Age,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sex&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Animals.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//create a composite key for table Animals&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Left Join(Animals)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ID_Key as ID,&lt;/P&gt;&lt;P&gt;KeyEat&lt;/P&gt;&lt;P&gt;Resident TableKey;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table TableKey;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/154324_2.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="3.jpg" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/154331_3.jpg" style="height: 332px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 06:21:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationships-between-key-values-Syn-Tables-and-Circular/m-p/1238928#M621161</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-02-24T06:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Relationships between key values ($Syn Tables and Circular References)</title>
      <link>https://community.qlik.com/t5/QlikView/Relationships-between-key-values-Syn-Tables-and-Circular/m-p/1238929#M621162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The above example shows in fact one-to-many mapping (one Tiger eats one or some Bunnys). If some Tigers eats some Bunnys, there is many-to-many mapping. In this case, it seems to me, must be new field in the table &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Animals_eat.xlsx&lt;/SPAN&gt;, which contains a unique value for each case of eating (for example field "Case" in the attached file xlsx).&lt;/P&gt;&lt;P&gt;The value of this new field will be included in a composite key when linking tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 12:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationships-between-key-values-Syn-Tables-and-Circular/m-p/1238929#M621162</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-02-24T12:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Relationships between key values ($Syn Tables and Circular References)</title>
      <link>https://community.qlik.com/t5/QlikView/Relationships-between-key-values-Syn-Tables-and-Circular/m-p/1238930#M621163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, my example was simplistic. When I alluded many-to-many, what I had in mind is two or more tigers sharing the same bunny, rather than a case classification of consumption instances. Like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Tiger_ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bunny_ID&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;T03&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B01&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;T03&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B02&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;T03&lt;/STRONG&gt;&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="text-decoration: line-through;"&gt;B04&lt;/SPAN&gt; &lt;STRONG&gt;B10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;T05&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;B10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;J.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 15:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationships-between-key-values-Syn-Tables-and-Circular/m-p/1238930#M621163</guid>
      <dc:creator>jwaligora</dc:creator>
      <dc:date>2017-02-24T15:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Relationships between key values ($Syn Tables and Circular References)</title>
      <link>https://community.qlik.com/t5/QlikView/Relationships-between-key-values-Syn-Tables-and-Circular/m-p/1238931#M621164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I have already analyzed this situation. Source file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="154405" alt="1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/154405_1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A working code for this event next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//load Animals_eat&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;TableAnimals_eat:&lt;/P&gt;&lt;P&gt;LOAD Tiger_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bunny_ID&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Animals_eat.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//create composite key whom ate&lt;/P&gt;&lt;P&gt;Left Join(TableAnimals_eat)&lt;/P&gt;&lt;P&gt;KeyEatWhom:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Tiger_ID,&lt;/P&gt;&lt;P&gt;Concat(Bunny_ID, '|') as KeyEatWhom&lt;/P&gt;&lt;P&gt;Resident TableAnimals_eat&lt;/P&gt;&lt;P&gt;Group By Tiger_ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//create composite key who ate&lt;/P&gt;&lt;P&gt;Left Join(TableAnimals_eat)&lt;/P&gt;&lt;P&gt;KeyEatWho:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Bunny_ID,&lt;/P&gt;&lt;P&gt;Concat(Tiger_ID, '|') as KeyEatWho&lt;/P&gt;&lt;P&gt;Resident TableAnimals_eat&lt;/P&gt;&lt;P&gt;Group By Bunny_ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//create composite common key&lt;/P&gt;&lt;P&gt;Left Join(TableAnimals_eat)&lt;/P&gt;&lt;P&gt;LOAD*,&lt;/P&gt;&lt;P&gt;KeyEatWho&amp;amp;'|'&amp;amp;KeyEatWhom as KeyEatCommon&lt;/P&gt;&lt;P&gt;Resident TableAnimals_eat;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Fields KeyEatWho, KeyEatWhom From TableAnimals_eat;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//create temp Key Table&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;TableKey:&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;If(IterNo()=1, Tiger_ID, Bunny_ID) as ID_Key,&lt;/P&gt;&lt;P&gt;KeyEatCommon&lt;/P&gt;&lt;P&gt;Resident TableAnimals_eat&lt;/P&gt;&lt;P&gt;While IterNo()&amp;lt;=2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//load Animals&lt;/P&gt;&lt;P&gt;Animals:&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;LOAD Animal,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Age,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sex&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Animals.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//create a composite key for table Animals&lt;/P&gt;&lt;P&gt;Left Join(Animals)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ID_Key as ID,&lt;/P&gt;&lt;P&gt;KeyEatCommon&lt;/P&gt;&lt;P&gt;Resident TableKey;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table TableKey;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="154418" alt="2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/154418_2.jpg" style="height: 275px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="154419" alt="3.jpg" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/154419_3.jpg" style="height: 253px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if out of the source file to delete the last line, we get the result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="154421" alt="4.jpg" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/154421_4.jpg" style="height: 254px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="154422" alt="5.jpg" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/154422_5.jpg" style="height: 377px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look carefully at the resulting synthetic keys. In the latter case we have "a porridge".&lt;/P&gt;&lt;P&gt;Brief conclusions:&lt;/P&gt;&lt;P&gt;1. With &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;many-to-many mapping&lt;/SPAN&gt; quality of the analysis depends on the quality of the source data. And since they will all be entered manually, mistakes are possible. Errors will be in the analysis.&lt;/P&gt;&lt;P&gt;2. If you ignore the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;many-to-many mapping&lt;/SPAN&gt; eating each case is unique (I wrote above about it), you can get a data structure unsuitable for analysis. I think it will build the right relationship between the tables. But have yet think.&lt;/P&gt;&lt;P&gt;3. In my opinion, these considerations are valid for both discussed ways to build data, as for the left join tables in your proposal and for my proposal to use synthetic keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that my considerations are correct, and I did not introduce you astray.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 19:26:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationships-between-key-values-Syn-Tables-and-Circular/m-p/1238931#M621164</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-02-24T19:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Relationships between key values ($Syn Tables and Circular References)</title>
      <link>https://community.qlik.com/t5/QlikView/Relationships-between-key-values-Syn-Tables-and-Circular/m-p/1238932#M621165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attaching a version with my 'big table' implementation. The first tab 'Main_view' demonstrates what associative behaviour I'm after. (Only the variable value picker and the two tables below it are of relevance; the ones on the side are just for reference.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your implementation sits in its own script tab named 'Andrey'. Promoting it to 1st script tab will run it instead of my 'Main' code. On the second page of the layout, labelled 'Andrey_view' is a duplicate of the 'Main_view' layout. I can't figure out how to define the expressions in the 'Variable Selection Output' table and the 'Reverse Lookup' table, to obtain the same result using&amp;nbsp; the 'Andrey' load as using the 'Main' load. Would it require a different set of keys?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case I over-confused the matter (which I know I did), I'm ready to apologize with some muffins, or given your name, possibly a bottle of vodka.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 00:52:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationships-between-key-values-Syn-Tables-and-Circular/m-p/1238932#M621165</guid>
      <dc:creator>jwaligora</dc:creator>
      <dc:date>2017-02-28T00:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Relationships between key values ($Syn Tables and Circular References)</title>
      <link>https://community.qlik.com/t5/QlikView/Relationships-between-key-values-Syn-Tables-and-Circular/m-p/1238933#M621166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joanna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, on the sheet 'In work" two diagrams with the new data structure. We continue to work on. Just do not have enough free time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 15:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationships-between-key-values-Syn-Tables-and-Circular/m-p/1238933#M621166</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-02-28T15:02:22Z</dc:date>
    </item>
  </channel>
</rss>

