<?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: Linking tables (circular reference) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Linking-tables-circular-reference/m-p/514434#M687185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try to give Alias name for those fields&amp;nbsp; which you don't want to link with other tables(if there is any same field name as different table field name)&amp;nbsp; then it won't show circular reference.&lt;/P&gt;&lt;P&gt;And Read this document&amp;nbsp; also for better understanding how to create good schema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashutosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Dec 2013 11:02:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-02T11:02:15Z</dc:date>
    <item>
      <title>Linking tables (circular reference)</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-tables-circular-reference/m-p/514432#M687183</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;i'm trying to connect some tables and i'm getting the "circular reference". I'm not really sure how to connect them.&lt;/P&gt;&lt;P&gt;This is what I get right now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Circular.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/49815_Circular.png" style="width: 620px; height: 376px;" /&gt;&lt;/P&gt;&lt;P&gt;I'm trying to connect the "t_Provincia", "t_Super" and "t_Distribuidor" and the main problem I have here is with the "idProvincia" and "Provincia".&lt;/P&gt;&lt;P&gt;If I connect "t_Distribuidor" with "t_Provincia":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="cir2.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/49817_cir2.png" style="width: 620px; height: 313px;" /&gt;&lt;/P&gt;&lt;P&gt;So, basically:&lt;/P&gt;&lt;P&gt;"Provincia" field: shoul be in t_Distribuidor and t_Provincia&lt;/P&gt;&lt;P&gt;"idProvincia" field: should be in t_Provincia and t_Super&lt;/P&gt;&lt;P&gt;"Distribuidor" field: should be in t_Distribuidor and t_Super.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking about creating a new table "t_ProvinciaDistribuidor" for the "Provincia" of the t_Distribuidor table, but the main problem is that I have to crete later a chart (stacked) where I have to show per "Provincia", the total of the t_Super (in a specific status) and the Num_SuperPerDistribuidor, so in some way, I have to select a specific "Provincia" for both table in one filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I've explained it ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 10:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-tables-circular-reference/m-p/514432#M687183</guid>
      <dc:creator />
      <dc:date>2013-12-02T10:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Linking tables (circular reference)</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-tables-circular-reference/m-p/514433#M687184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a snowflake model where Provincia is a central dimension attached to a link table with suitable keys. The idea is that if you can't keep dimensions on the outer layer, put them in the center.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover, Povincia, Municipio and Comunidad on average can be organised into a hierarchy where only one of those is connected to the facts. That way you can create a real SnowFlake model. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 11:01:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-tables-circular-reference/m-p/514433#M687184</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2013-12-02T11:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Linking tables (circular reference)</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-tables-circular-reference/m-p/514434#M687185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try to give Alias name for those fields&amp;nbsp; which you don't want to link with other tables(if there is any same field name as different table field name)&amp;nbsp; then it won't show circular reference.&lt;/P&gt;&lt;P&gt;And Read this document&amp;nbsp; also for better understanding how to create good schema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashutosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 11:02:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-tables-circular-reference/m-p/514434#M687185</guid>
      <dc:creator />
      <dc:date>2013-12-02T11:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Linking tables (circular reference)</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-tables-circular-reference/m-p/514435#M687186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answers.&lt;/P&gt;&lt;P&gt;Anyway, first of all, I apply a Mapping Load, because the "Provincia"&amp;nbsp; value in the t_Provincia and the t_Super were different.&lt;/P&gt;&lt;P&gt;Then, I have to make a LEFT JOIN in the "t_Distribuidor" to populate that table with the correct IdProvincia, in order to have the real id, and not the value Provincia, so I can have the same field in t_Super and t_Distribuidor.&lt;/P&gt;&lt;P&gt;I've have now something like this.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="final.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/49830_final.png" style="width: 620px; height: 286px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I guess now it is correct, isnt't it?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I post how I create my LinkTable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LinkTable:&lt;/P&gt;&lt;P&gt;LOAD Distinct &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Distribuidor_idProvincia AS idProvincia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Distribuidor_Distribuidor AS Distribuidor&lt;/P&gt;&lt;P&gt;Resident t_Distribuidor;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(LinkTable)&lt;/P&gt;&lt;P&gt;LOAD Distinct &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Super_idProvincia as idProvincia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Super_Distribuidor AS Distribuidor&lt;/P&gt;&lt;P&gt;Resident t_Super;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Fields Distribuidor_idProvincia, Super_idProvincia, Super_Distribuidor, Distribuidor_Distribuidor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 12:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-tables-circular-reference/m-p/514435#M687186</guid>
      <dc:creator />
      <dc:date>2013-12-02T12:29:17Z</dc:date>
    </item>
  </channel>
</rss>

