<?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: Help with circular reference in data model in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-circular-reference-in-data-model/m-p/1327375#M826311</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jul 2017 20:01:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-07-20T20:01:48Z</dc:date>
    <item>
      <title>Help with circular reference in data model</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-circular-reference-in-data-model/m-p/1327369#M826303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, I have a circular reference, but I'm not sure how to get rid of it while keeping the data in the structure that I need.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="circle.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/170572_circle.png" style="height: 310px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Let me explain:&lt;/P&gt;&lt;P&gt;ItemDim is a list of items and item codes, and the sales data for those items is in SalesFact.&lt;/P&gt;&lt;P&gt;ItemCategories is an excel doc that links item numbers to a Product, like item 5688 is under the Mobile App Product. &lt;/P&gt;&lt;P&gt;The $Syn 3 table was created because of my circular reference.&lt;/P&gt;&lt;P&gt;Cases and Projects are a list of cases/projects, that are also tied to a product, but this tie-in is not through the previous excel doc, but a different hardcoded method (if case# = 2221, then Mobile App). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my document, I need a chart that shows values for cases and products, and puts it against data from item revenues. The issue is, in order to have these on one chart with the correct values, I need to combine the Product List from Items and the Product List from Cases/Projects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a TestFinalProduct table, and called it the same thing in both sections, but it gave me a circular loop. &lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-circular-reference-in-data-model/m-p/1327369#M826303</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with circular reference in data model</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-circular-reference-in-data-model/m-p/1327370#M826304</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;Normally to check the synthetic links, I use the other view (this view is a little messy for me).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, the circular reference and the synthetic key are different problems, you can "live" with a synthetic but not with a circular.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw that the circular reference is because "item_key", could you take off this field? Or because the "synth1".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to fix this problem first, will be easier to fix the synthetic (normally just concatenating fields)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 16:01:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-circular-reference-in-data-model/m-p/1327370#M826304</guid>
      <dc:creator>jmvilaplanap</dc:creator>
      <dc:date>2017-07-18T16:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help with circular reference in data model</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-circular-reference-in-data-model/m-p/1327371#M826305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should I join or concatenate? &lt;/P&gt;&lt;P&gt;Item Dim is a list of items, and SalesFact is the sales orders for those items.&lt;/P&gt;&lt;P&gt;Would it help if I joined/concatenated those two tables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 21:04:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-circular-reference-in-data-model/m-p/1327371#M826305</guid>
      <dc:creator />
      <dc:date>2017-07-18T21:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help with circular reference in data model</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-circular-reference-in-data-model/m-p/1327372#M826306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I would consider creating a Link Table which has all the key fields. The data model will look cleaner and you won't have any synthetic keys OR Circular references to worry about.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Ex: &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15004144417065019" jivemacro_uid="_15004144417065019" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Cases:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Load &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Field1, Field2,...//All fields EXCEPT key fields,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;ProdID&amp;amp;Date&amp;amp;Month&amp;amp;Prod&amp;amp;Cust*Ctgy as %CasesKey &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;from Cases.qvd;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Projects:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Load &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;//All fields&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 13.3333px;"&gt; EXCEPT &lt;/SPAN&gt;key fields,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;ProdID&amp;amp;Date&amp;amp;Month&amp;amp;Prod&amp;amp;Cust*Ctgy as %ProjectKey&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;from Projects.qvd;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Sales Fact:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Load &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;//All fields &lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 13.3333px;"&gt;EXCEPT &lt;/SPAN&gt;key fields,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;ProdID&amp;amp;Date&amp;amp;Month as %SalesKey&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;from Sales.qvd;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Link Table:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;//Load all Key fields and Key Columns from all fact tables&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Load &lt;SPAN style="font-size: 13.3333px;"&gt;ProdID&amp;amp;Date&amp;amp;Month&amp;amp;Prod&amp;amp;Cust*Ctgy as %CasesKey&lt;/SPAN&gt;, //All Key fields from &lt;SPAN style="font-size: 13.3333px;"&gt;Cases&lt;/SPAN&gt;.qvd;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Load &lt;SPAN style="font-size: 13.3333px;"&gt;ProdID&amp;amp;Date&amp;amp;Month&amp;amp;Prod&amp;amp;Cust*Ctgy as %ProjectKey&lt;/SPAN&gt;,//All Key fields from &lt;SPAN style="font-size: 13.3333px;"&gt;Projects&lt;/SPAN&gt;.qvd;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load &lt;SPAN style="font-size: 13.3333px;"&gt;ProdID&amp;amp;Date&amp;amp;Month as %SalesKey&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,//All Key fields from Sales.qvd;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 21:52:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-circular-reference-in-data-model/m-p/1327372#M826306</guid>
      <dc:creator>manas_bn</dc:creator>
      <dc:date>2017-07-18T21:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help with circular reference in data model</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-circular-reference-in-data-model/m-p/1327373#M826307</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;In my opinion, the best is to join ItemDim and ItemCategories because are strong relationated and makes sense logically. With this you can say bye to the circular reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the synt, try to concatenate the fields and rename them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For better performance, use Autonumber function for the keys (&lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/CounterFunctions/autonumber.htm" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/CounterFunctions/autonumber.htm"&gt;http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/CounterFunctions/autonumber.htm&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 08:25:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-circular-reference-in-data-model/m-p/1327373#M826307</guid>
      <dc:creator>jmvilaplanap</dc:creator>
      <dc:date>2017-07-19T08:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help with circular reference in data model</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-circular-reference-in-data-model/m-p/1327374#M826308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 20:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-circular-reference-in-data-model/m-p/1327374#M826308</guid>
      <dc:creator />
      <dc:date>2017-07-20T20:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help with circular reference in data model</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-circular-reference-in-data-model/m-p/1327375#M826311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 20:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-circular-reference-in-data-model/m-p/1327375#M826311</guid>
      <dc:creator />
      <dc:date>2017-07-20T20:01:48Z</dc:date>
    </item>
  </channel>
</rss>

