<?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 How to solve circular reference with two 1 to N relationship in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-solve-circular-reference-with-two-1-to-N-relationship/m-p/1993230#M82198</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I want to avoid circular reference in my data, by I don't know how to get it.&lt;/P&gt;
&lt;P&gt;I have one main table &lt;U&gt;Homes&lt;/U&gt;&amp;nbsp;with one row per &lt;EM&gt;home&lt;/EM&gt;, and each row has &lt;EM&gt;num_of_appliances&lt;/EM&gt; field which is an aggregated field as integer. Then, each home (&lt;EM&gt;home_id&lt;/EM&gt;), has N &lt;U&gt;people&lt;/U&gt; living on it, so I have a reference 1:N here. Also, each home has N &lt;U&gt;rooms&lt;/U&gt;, son here I also have a reference 1:N. As follows:&lt;/P&gt;
&lt;P&gt;Homes:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;date_1&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;home_id&lt;/TD&gt;
&lt;TD width="25%"&gt;num_of_appliances&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;2022-10-17&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;1234&lt;/TD&gt;
&lt;TD width="25%"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;People:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;home_id&lt;/TD&gt;
&lt;TD width="50%" height="25px"&gt;person&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;1234&lt;/TD&gt;
&lt;TD width="50%" height="25px"&gt;Mike&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;Rooms:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;home_id&lt;/TD&gt;
&lt;TD width="50%"&gt;room&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;1234&lt;/TD&gt;
&lt;TD width="50%"&gt;bathroom&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't do a left join of A with B and C because that would duplicate values from all tables. The data must be separated.&lt;/P&gt;
&lt;P&gt;How can I solve this?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2022 10:06:45 GMT</pubDate>
    <dc:creator>amaaiia</dc:creator>
    <dc:date>2022-10-17T10:06:45Z</dc:date>
    <item>
      <title>How to solve circular reference with two 1 to N relationship</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-solve-circular-reference-with-two-1-to-N-relationship/m-p/1993230#M82198</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I want to avoid circular reference in my data, by I don't know how to get it.&lt;/P&gt;
&lt;P&gt;I have one main table &lt;U&gt;Homes&lt;/U&gt;&amp;nbsp;with one row per &lt;EM&gt;home&lt;/EM&gt;, and each row has &lt;EM&gt;num_of_appliances&lt;/EM&gt; field which is an aggregated field as integer. Then, each home (&lt;EM&gt;home_id&lt;/EM&gt;), has N &lt;U&gt;people&lt;/U&gt; living on it, so I have a reference 1:N here. Also, each home has N &lt;U&gt;rooms&lt;/U&gt;, son here I also have a reference 1:N. As follows:&lt;/P&gt;
&lt;P&gt;Homes:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;date_1&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;home_id&lt;/TD&gt;
&lt;TD width="25%"&gt;num_of_appliances&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;2022-10-17&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;1234&lt;/TD&gt;
&lt;TD width="25%"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;People:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;home_id&lt;/TD&gt;
&lt;TD width="50%" height="25px"&gt;person&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;1234&lt;/TD&gt;
&lt;TD width="50%" height="25px"&gt;Mike&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;Rooms:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;home_id&lt;/TD&gt;
&lt;TD width="50%"&gt;room&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;1234&lt;/TD&gt;
&lt;TD width="50%"&gt;bathroom&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't do a left join of A with B and C because that would duplicate values from all tables. The data must be separated.&lt;/P&gt;
&lt;P&gt;How can I solve this?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 10:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-solve-circular-reference-with-two-1-to-N-relationship/m-p/1993230#M82198</guid>
      <dc:creator>amaaiia</dc:creator>
      <dc:date>2022-10-17T10:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve circular reference with two 1 to N relationship</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-solve-circular-reference-with-two-1-to-N-relationship/m-p/1993618#M82229</link>
      <description>&lt;P&gt;You are not showing us what is causing the circular reference ?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 00:18:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-solve-circular-reference-with-two-1-to-N-relationship/m-p/1993618#M82229</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2022-10-18T00:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve circular reference with two 1 to N relationship</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-solve-circular-reference-with-two-1-to-N-relationship/m-p/1993642#M82230</link>
      <description>&lt;P&gt;You can just load these three tables &lt;U&gt;as it is without joining&lt;/U&gt;,&lt;/P&gt;
&lt;P&gt;and there will be not circular reference if the data is as shown in your sample&lt;/P&gt;
&lt;P&gt;Have you tried loading the data? can you post a snapshot of your datamodel that shows circular reference?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 02:56:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-solve-circular-reference-with-two-1-to-N-relationship/m-p/1993642#M82230</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-10-18T02:56:48Z</dc:date>
    </item>
  </channel>
</rss>

