<?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: Data Model Help - Circular referenceD in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Data-Model-Help-Circular-referenceD/m-p/116004#M8034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more shameless bounce.&amp;nbsp; I am so stuck with this, and am sure it must be straightforward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I'm just not understanding something and thinking of relational databases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have restarted to try and understand and removed my calendar table, trying it with the autogenerated one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that the calendar seems to associate with each of my tables (views) without taking into account the dates in the other table, so I get 2 date associatons, which independently work on each one, but not updating the other.&amp;nbsp; The results returned are just a fixed value in the table I am not filtering on, or currently changing, but way to high on the measures on one &lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/208792_Capture.PNG" style="height: 540px; width: 620px;" /&gt;of the tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not getting a circular reference right now, just everytime I try and link as I would expect to, I get circular refs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be so grateful if someone could assist!!&lt;/P&gt;&lt;P&gt;I am aware that the screen shot (table/field names) is different to the original one, but the problem remains the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the current data data model view, and also the load script &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;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/208791_Capture.PNG" style="height: 540px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2018 10:53:06 GMT</pubDate>
    <dc:creator>bha</dc:creator>
    <dc:date>2018-07-25T10:53:06Z</dc:date>
    <item>
      <title>Data Model Help - Circular referenceD</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Model-Help-Circular-referenceD/m-p/116001#M8031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there I hope you can help.&amp;nbsp; I am pulling my hair out a little with my data model, it seems straightforward and is I am sure almost there.&amp;nbsp; I have set up this scenario to try and make it easier to get it explained. I am trying to link data from 2 tables (systems), 'DevAvHandled ' and 'DevMagLogged'.&amp;nbsp; There is no link currently between these except a mismatched 'Name'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am trying to link it to a new table. where the staff name is spelt correctly and is the primary key (name_uq) and there are 2 fields in there, one called MagUser_id which should link to the DevMagLogged table on DevMagLogged.username and one called AvaAgentLogin in which links to DevAvHandled.AgentLogin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far so good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then have a calendar table which needs to link to both &lt;SPAN style="font-size: 13.3333px;"&gt;DevMagLogged, and &lt;SPAN style="font-size: 13.3333px;"&gt;DevAvHandled on &lt;SPAN style="font-size: 13.3333px;"&gt;DevMagLogged.magDate, and &lt;SPAN style="font-size: 13.3333px;"&gt;DevAvHandled.AvaDate.&amp;nbsp; I cant use the auto generated calendar here&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So I guess I also need, which I have tried, to link the Dates between &lt;SPAN style="font-size: 13.3333px;"&gt;DevMagLogged and &lt;SPAN style="font-size: 13.3333px;"&gt;DevAvHandled &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I have probably not explained this very clearly!&amp;nbsp; I have done it step by step, and keep ending up with a circular reference somehow or another.&amp;nbsp; It was almost working and if I filtered on avaDate or MagDate, it was doing ok.&amp;nbsp; When I put the calendar in and do&amp;nbsp; week commencing for example, one of the tables refreshes, but not the other.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I hope that makes sense&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Here is a picture of the data model as it is now.&amp;nbsp; Al the tables (views) are in a local sql server instance.&amp;nbsp; I have also attached a script for the test tables from SQL2014, any help on how it should be done/if I need to explain anything, very much appreciated! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks a million&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DataModelCircularReference.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/208563_DataModelCircularReference.PNG" style="height: 389px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 15:09:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Model-Help-Circular-referenceD/m-p/116001#M8031</guid>
      <dc:creator>bha</dc:creator>
      <dc:date>2018-07-23T15:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model Help - Circular referenceD</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Model-Help-Circular-referenceD/m-p/116002#M8032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And from the data manager&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DataManager.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/208564_DataManager.PNG" style="height: 446px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 15:10:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Model-Help-Circular-referenceD/m-p/116002#M8032</guid>
      <dc:creator>bha</dc:creator>
      <dc:date>2018-07-23T15:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model Help - Circular referenceD</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Model-Help-Circular-referenceD/m-p/116003#M8033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, I am just wondering if this is posted in the correct place and indeed makes sense or if there is any further information which may be usefu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a great day&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 08:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Model-Help-Circular-referenceD/m-p/116003#M8033</guid>
      <dc:creator>bha</dc:creator>
      <dc:date>2018-07-24T08:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model Help - Circular referenceD</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Model-Help-Circular-referenceD/m-p/116004#M8034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more shameless bounce.&amp;nbsp; I am so stuck with this, and am sure it must be straightforward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I'm just not understanding something and thinking of relational databases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have restarted to try and understand and removed my calendar table, trying it with the autogenerated one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that the calendar seems to associate with each of my tables (views) without taking into account the dates in the other table, so I get 2 date associatons, which independently work on each one, but not updating the other.&amp;nbsp; The results returned are just a fixed value in the table I am not filtering on, or currently changing, but way to high on the measures on one &lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/208792_Capture.PNG" style="height: 540px; width: 620px;" /&gt;of the tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not getting a circular reference right now, just everytime I try and link as I would expect to, I get circular refs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be so grateful if someone could assist!!&lt;/P&gt;&lt;P&gt;I am aware that the screen shot (table/field names) is different to the original one, but the problem remains the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the current data data model view, and also the load script &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;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/208791_Capture.PNG" style="height: 540px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 10:53:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Model-Help-Circular-referenceD/m-p/116004#M8034</guid>
      <dc:creator>bha</dc:creator>
      <dc:date>2018-07-25T10:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model Help - Circular referenceD</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Model-Help-Circular-referenceD/m-p/116005#M8035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An example &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;&lt;IMG alt="Capture2.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/208815_Capture2.PNG" style="height: 265px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 11:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Model-Help-Circular-referenceD/m-p/116005#M8035</guid>
      <dc:creator>bha</dc:creator>
      <dc:date>2018-07-25T11:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model Help - Circular referenceD</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Model-Help-Circular-referenceD/m-p/116006#M8036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have moved this to a different forum as perhaps I havent explained properly in the "New to Qliksense" area &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 08:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Model-Help-Circular-referenceD/m-p/116006#M8036</guid>
      <dc:creator>bha</dc:creator>
      <dc:date>2018-07-26T08:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model Help - Circular referenceD</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Model-Help-Circular-referenceD/m-p/116007#M8037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, if anyone could help me out here I would be totally grateful, I have been away from it a bit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I went back to square one if you like, to try and get my head round this, and for some reason something as simple getting the calendar dimensions working.&amp;nbsp; My approach may be totally wrong due to my database mindset which I am trying to change.&amp;nbsp; This is the method I am trying and would like to understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My table vLinkTable is actually a sql view which should I believe achieve what I want in a manner I understand for now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script is attached and image below and quite clearly I am creating synthetic keys.&amp;nbsp; &lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/211525_Capture.PNG" style="height: 385px; width: 620px;" /&gt;#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So there are 2 fact tables if you like (at this stage), a link table, and the $Syn table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I know you arent meant to have synthetic keys/circular references anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the data which is coming back at this stage is correct.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how come, even with this (and I understand its probably not the best), that I cant filter on the week_commencing field in the vLinkTable?.&amp;nbsp; calendar_date work fine so I guess something must be right (both the measures from the facts mag_LoggedbyAgent and ava_handledByAgent.&amp;nbsp; So I guess something is working right&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;username links to magusername&lt;/P&gt;&lt;P&gt;AgentLogin links to AvaAgentLogin&lt;/P&gt;&lt;P&gt;magDate amd avaDate link to calendar_date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am probably not explaining very well (brain is circular referencing itself &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; ).&amp;nbsp; Does this make sense with the script?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/2454"&gt;sunny&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 15:16:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Model-Help-Circular-referenceD/m-p/116007#M8037</guid>
      <dc:creator>bha</dc:creator>
      <dc:date>2018-08-22T15:16:47Z</dc:date>
    </item>
  </channel>
</rss>

