<?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>idea Re: Allow an entity to be a dimension and a fact in the same star schema in a data mart to enable simple joins for point-in-time data analysis - Status changed to: Closed - Archived in Suggest an Idea</title>
    <link>https://community.qlik.com/t5/Suggest-an-Idea/Allow-an-entity-to-be-a-dimension-and-a-fact-in-the-same-star/idc-p/2099845#M13120</link>
    <description />
    <pubDate>Wed, 02 Aug 2023 15:01:34 GMT</pubDate>
    <dc:creator>Ideation</dc:creator>
    <dc:date>2023-08-02T15:01:34Z</dc:date>
    <item>
      <title>Allow an entity to be a dimension and a fact in the same star schema in a data mart to enable simple joins for point-in-time data analysis</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/Allow-an-entity-to-be-a-dimension-and-a-fact-in-the-same-star/idi-p/1774898</link>
      <description>&lt;P&gt;When managing the data marts, an entity can be selected as a fact in a star schema, but the &lt;EM&gt;same entity&lt;/EM&gt; cannot be selected as a dimension in that star schema to be related to the fact.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be beneficial for data modeling and end-user querying for point-in-time data analysis to enable an entity to be a fact and dimension in the same star schema (and thereby be linked to each other). This would enable the _VID column in the table join columns to be present on the fact table in addition to the dimension table, and enable point-in-time data analysis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Typically, the fact table will have columns used for metric calculations, date values, and foreign key columns (_OID and _VID suffixed) to dimension tables, and a dimension table will have descriptive attribute columns in a Type 2 Slowly Changing Dimension. In Qlik Compose, it appears the fact and dimension table relationships are driven from the entity model relationships, and the physical fact and dimension tables will have two key columns joining the tables with an _OID and _VID suffix.&lt;/P&gt;&lt;P&gt;This join between the fact and the dimension physical tables using the _VID suffixed column is crucial for simple joins to see the dimension record version (in Type 2 SCD)&amp;nbsp;&lt;EM&gt;as-at the time of the fact event record&lt;/EM&gt;. This would be consistent with fact tables joined to a Type 2 SCD of a different entity.&lt;/P&gt;&lt;P&gt;Even if the entity is selected as a dimension in another star schema, that dimension cannot be added to the star schema with the entity as the fact.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Star Schema 1: Entity1 as Fact 1Fct_Entity1&lt;/P&gt;&lt;P&gt;Star Schema 2: Entity2 as Fact 1Fct_Entity2; Entity1 as Dimension 1Dim_Entity1 related to 1Fct_Entity2&lt;/P&gt;&lt;P&gt;1Dim_Entity1 cannot be added to Star Schema 1 using the 'Add Dimension to Star Schema' function in the 'Manage Data Marts' window. (refer to attachment screenshot)&lt;/P&gt;&lt;P&gt;If the entity exists as a dimension, the fact and the dimension share the key_OID column so it is possible to query and join the two tables in a query, but only to see the latest version of the dimension record, not the version of the dimension record as-at the time of the fact; the fact table lacks the key_VID column to provide an easy join for 'point-in-time' linkage to the dimension.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/114004"&gt;@QTC_Manuel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 21:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/Allow-an-entity-to-be-a-dimension-and-a-fact-in-the-same-star/idi-p/1774898</guid>
      <dc:creator>paulstevens</dc:creator>
      <dc:date>2021-01-15T21:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Allow an entity to be a dimension and a fact in the same star schema in a data mart to enable simple joins for point-in-time data analysis - Status changed to: Open - Collecting Feedback</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/Allow-an-entity-to-be-a-dimension-and-a-fact-in-the-same-star/idc-p/1797161#M5684</link>
      <description>&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;Can you please explain what is the use-case you are trying to solve? Do you want to add the entity to the fact as type-1 and connect to it as a type-2 dimension? Can you maybe provide a real-life example?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tzachi&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 11:12:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/Allow-an-entity-to-be-a-dimension-and-a-fact-in-the-same-star/idc-p/1797161#M5684</guid>
      <dc:creator>Tzachi_Nissim</dc:creator>
      <dc:date>2021-04-06T11:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Allow an entity to be a dimension and a fact in the same star schema in a data mart to enable simple joins for point-in-time data analysis</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/Allow-an-entity-to-be-a-dimension-and-a-fact-in-the-same-star/idc-p/1798052#M5738</link>
      <description>&lt;P&gt;Hi Tzachi&lt;/P&gt;&lt;P&gt;Thanks for the reply. Typically a state-oriented fact would be type-1 and linked to a type-2 dimension. The fact has numeric fields, foreign keys to dimension tables, and datetime fields. The dimension has descriptive attributes like text attributes, for example, the name and status of the opportunity.&lt;/P&gt;&lt;P&gt;Opportunity Entity: ID, Name, Status, Date Created, Date Modified, Amount, CustomerKey (relationship to separate Customer entity)&lt;/P&gt;&lt;P&gt;These are the physical tables in the data mart:&lt;/P&gt;&lt;P&gt;1Fct_Opportunity: DateCreated, DateModified, Amount, Opportunity_OID, Customer_VID, Customer_OID&lt;BR /&gt;1Dim_Customer: Customer_VID, Customer_OID, Name&lt;/P&gt;&lt;P&gt;This is what I would like to see:&lt;/P&gt;&lt;P&gt;1Fct_Opportunity: DateCreated, Amount, &lt;STRONG&gt;Opportunity_VID&lt;/STRONG&gt;, Opportunity_OID, Customer_VID, Customer_OID&lt;BR /&gt;&lt;STRONG&gt;1Dim_Opportunity: Opportunity_VID, Opportunity_OID, Name, Status&lt;/STRONG&gt;&lt;BR /&gt;1Dim_Customer: Customer_VID, Customer_OID, Name&lt;/P&gt;&lt;P&gt;The 1Fct_Opportunity.OPPORTUNITY_VID field enables me to query the Status of the Opportunity (1Dim_Opportunity.Status) as at the DateModified of the Fact record, as 1Dim_Opportunity is a type-2 dimension.&lt;/P&gt;&lt;P&gt;Without the 1Fct_Opportunity.Opportunity_VID field, I cannot easily get the Status&amp;nbsp;&lt;EM&gt;as at the DateModified&lt;/EM&gt; datetime of the Opportunity.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Paul&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 15:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/Allow-an-entity-to-be-a-dimension-and-a-fact-in-the-same-star/idc-p/1798052#M5738</guid>
      <dc:creator>paulstevens</dc:creator>
      <dc:date>2021-04-08T15:27:38Z</dc:date>
    </item>
    <item>
      <title>From now on, please track this idea from the Ideation por...</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/Allow-an-entity-to-be-a-dimension-and-a-fact-in-the-same-star/idc-p/2099844#M13119</link>
      <description>&lt;P&gt;From now on, please track this idea from the Ideation portal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A title="Link to new idea" href="https://ideation.qlik.com/app/#/case/278871" target="_blank" rel="noopener"&gt;Link to new idea&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Meghann&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;EM&gt;NOTE: Upon clicking this link 2 tabs may open - please feel free to close the one with a login page. If you &lt;STRONG&gt;only&lt;/STRONG&gt; see 1 tab with the login page, please try clicking this link first: &lt;STRONG&gt;&lt;A title="Authenticate me!" href="#" target="_blank" rel="noopener"&gt;Authenticate me!&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;t&lt;/EM&gt;&lt;EM&gt;hen try the link above again. Ensure pop-up blocker is off.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 15:01:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/Allow-an-entity-to-be-a-dimension-and-a-fact-in-the-same-star/idc-p/2099844#M13119</guid>
      <dc:creator>Meghann_MacDonald</dc:creator>
      <dc:date>2023-08-02T15:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Allow an entity to be a dimension and a fact in the same star schema in a data mart to enable simple joins for point-in-time data analysis - Status changed to: Closed - Archived</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/Allow-an-entity-to-be-a-dimension-and-a-fact-in-the-same-star/idc-p/2099845#M13120</link>
      <description />
      <pubDate>Wed, 02 Aug 2023 15:01:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/Allow-an-entity-to-be-a-dimension-and-a-fact-in-the-same-star/idc-p/2099845#M13120</guid>
      <dc:creator>Ideation</dc:creator>
      <dc:date>2023-08-02T15:01:34Z</dc:date>
    </item>
  </channel>
</rss>

