<?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 resolve this circular reference / synthetic table situation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-resolve-this-circular-reference-synthetic-table-situation/m-p/237532#M88585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One idea, maybe not the most performant one but very useful would be to rename the PeriodId into two fields PeriodID_Absenteism and PeriodID_Revenue&lt;/P&gt;&lt;P&gt;Then the Period table would be detach from other tables ( that means you create a kind of Calendar table).&lt;/P&gt;&lt;P&gt;Then you can use set analysis very easily to filter data based on the calendar selection.&lt;/P&gt;&lt;P&gt;Or you create two Periods tables, this can be a possibility too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, at the end create fact tables, this will be more powerful in terms or selection but could be more complicated in the script...&lt;/P&gt;&lt;P&gt;Personnaly, when we talk about date issues I like to work with one alone Calendar table (island table) and different set analysis expressions.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sébastien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Jan 2011 16:47:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-03T16:47:17Z</dc:date>
    <item>
      <title>How to resolve this circular reference / synthetic table situation</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-resolve-this-circular-reference-synthetic-table-situation/m-p/237529#M88582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I've got the following problem: I want to do some KPI reporting (within a single qvw) on two separate measures:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The number of illness days (absenteeism) per period (month+year) and per department (drill down to employee level). The data are available per employee, and each employee works in a department.&lt;/LI&gt;&lt;LI&gt;The total revenue per project (each project has been done in one department, and in one period) and per period.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;You can see what is happening here: I've got a classic example of a circular reference.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3153_sourceID:3153" /&gt;&lt;/P&gt;&lt;P&gt;Now, what I tried to do here is to remove the circular reference by concatenating the two fact tables (Absenteeism and Revenue). Now, this works, and will get me the correct figures, but leaves me with a synthetic table for the combination of EmployeeId and DepartmentId. This is the &lt;I&gt;source table view&lt;/I&gt;, so you can see this can't be solved by using a composite key:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3154_sourceID:3154" /&gt;&lt;/P&gt;&lt;P&gt;I'm a bit puzzled here, as to what would be the best way to solve this.&lt;/P&gt;&lt;P&gt;Any ideas would be welcome.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Fréderic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 15:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-resolve-this-circular-reference-synthetic-table-situation/m-p/237529#M88582</guid>
      <dc:creator />
      <dc:date>2011-01-03T15:11:01Z</dc:date>
    </item>
    <item>
      <title>How to resolve this circular reference / synthetic table situation</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-resolve-this-circular-reference-synthetic-table-situation/m-p/237530#M88583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, is it possible to duplicate the "&lt;B&gt;Department&lt;/B&gt;" table but with another alias for the fields?&lt;/P&gt;&lt;P&gt;I think it will be&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Employee_Department:&lt;BR /&gt;Load&lt;BR /&gt; DepartmentID as Employee_DepartmentID,&lt;BR /&gt; Department as Employee_Department&lt;BR /&gt;resident Department;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;and in the &lt;B&gt;Employee&lt;/B&gt; table change&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;DepartmentID as Employee_DepartmentID&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This will avoid the circular reference&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 15:24:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-resolve-this-circular-reference-synthetic-table-situation/m-p/237530#M88583</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2011-01-03T15:24:06Z</dc:date>
    </item>
    <item>
      <title>How to resolve this circular reference / synthetic table situation</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-resolve-this-circular-reference-synthetic-table-situation/m-p/237531#M88584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, sure, but I'm not a big fan of redundancy. Because this raises another question: if I select a department filter on the revenue data, that filter will not be imposed on the absenteeism data. This would imply that the user would have to select that same department a second time. And I can tell you, users don't like these kind of things, it just doesn't seem logical.&lt;/P&gt;&lt;P&gt;F.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 15:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-resolve-this-circular-reference-synthetic-table-situation/m-p/237531#M88584</guid>
      <dc:creator />
      <dc:date>2011-01-03T15:28:44Z</dc:date>
    </item>
    <item>
      <title>How to resolve this circular reference / synthetic table situation</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-resolve-this-circular-reference-synthetic-table-situation/m-p/237532#M88585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One idea, maybe not the most performant one but very useful would be to rename the PeriodId into two fields PeriodID_Absenteism and PeriodID_Revenue&lt;/P&gt;&lt;P&gt;Then the Period table would be detach from other tables ( that means you create a kind of Calendar table).&lt;/P&gt;&lt;P&gt;Then you can use set analysis very easily to filter data based on the calendar selection.&lt;/P&gt;&lt;P&gt;Or you create two Periods tables, this can be a possibility too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, at the end create fact tables, this will be more powerful in terms or selection but could be more complicated in the script...&lt;/P&gt;&lt;P&gt;Personnaly, when we talk about date issues I like to work with one alone Calendar table (island table) and different set analysis expressions.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sébastien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 16:47:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-resolve-this-circular-reference-synthetic-table-situation/m-p/237532#M88585</guid>
      <dc:creator />
      <dc:date>2011-01-03T16:47:17Z</dc:date>
    </item>
    <item>
      <title>How to resolve this circular reference / synthetic table situation</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-resolve-this-circular-reference-synthetic-table-situation/m-p/237533#M88586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, this is a rather simple data modeling exercise...&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You started on the right path when you decided to concatenate the two fact tables into one&lt;/LI&gt;&lt;LI&gt;The only missing step is to ensure that all the relevant Dimension Keys are represented in the combined Fact Table.&lt;/LI&gt;&lt;LI&gt;In your case, this means moving "Department ID" from the Employees table into Absenteeism table, prior to concatenating.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This is not causing any duplication of the data (in QlikView, we only store distinct values), but rather helps transforming your data model in the classical "Star Schema", that always works best in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 17:11:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-resolve-this-circular-reference-synthetic-table-situation/m-p/237533#M88586</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2011-01-03T17:11:38Z</dc:date>
    </item>
    <item>
      <title>How to resolve this circular reference / synthetic table situation</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-resolve-this-circular-reference-synthetic-table-situation/m-p/237534#M88587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your contributions.&lt;/P&gt;&lt;P&gt;I guess I still have to get used to the non-relational nature of QlikView &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;P&gt;F.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 17:30:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-resolve-this-circular-reference-synthetic-table-situation/m-p/237534#M88587</guid>
      <dc:creator />
      <dc:date>2011-01-03T17:30:22Z</dc:date>
    </item>
    <item>
      <title>How to resolve this circular reference / synthetic table situation</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-resolve-this-circular-reference-synthetic-table-situation/m-p/237535#M88588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure - loading the same dimension table more than once is not recomended. even if you join its date to different facts - the solution is somewhere there but someone from QLIKTECH must response to that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 11:09:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-resolve-this-circular-reference-synthetic-table-situation/m-p/237535#M88588</guid>
      <dc:creator />
      <dc:date>2011-06-09T11:09:29Z</dc:date>
    </item>
  </channel>
</rss>

