<?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 Migrate to generic key model... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Migrate-to-generic-key-model/m-p/1149650#M375850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;We have a model where two fact tables which are related to each other by country.&amp;nbsp; Fact1 is a straight connection.&amp;nbsp; Each country has a set of facts.&amp;nbsp; Fact2 measures are attached to one/more vendors in a country.&amp;nbsp; We moved the vendor country to the Fact2 table and duplicated the country key (%Fact2 Country) giving us the following diagram.&amp;nbsp; What we get on the load are fact2 rows duplicated for each occurence of a fact1 row.&amp;nbsp; &lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif; font-size: 13.3333px;"&gt;All facts in our model have a country.&amp;nbsp; &lt;/SPAN&gt;This give us what we need (all facts related directly/indirectly to the country).&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;We're not sure this is the most efficient design.&amp;nbsp; We've been reviewing &lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/download/3451-6-48718/Example on Mixed granularity - Budget vs Actuals.zip"&gt;generic keys example&lt;/A&gt;‌ but we get a checkerboarding effect where dimensions specific to one fact table will not show the other fact table. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;Table layout&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128447_Capture.JPG" style="height: 213px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;Script&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt; line-height: 1.5em;"&gt;[Fact1]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%Fact1Key,Measure1,Meausure2,%Country,%Category&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[Country]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%Country,%Fact2 Country, Country Name,Region&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[Category]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%Category,Category,Category Description&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[Fact2]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%Fact2Key,Measure3,Measure4,%Vendor,%Fact2 Country,%Status&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[Fact2 Log]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%Fact2Key, First Log Date, Last Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[Vendor]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%Vendor,Vendor ID,Vendor Name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[Status]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%Status, Status, Status Description&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Jun 2016 23:48:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-06-19T23:48:08Z</dc:date>
    <item>
      <title>Migrate to generic key model...</title>
      <link>https://community.qlik.com/t5/QlikView/Migrate-to-generic-key-model/m-p/1149650#M375850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;We have a model where two fact tables which are related to each other by country.&amp;nbsp; Fact1 is a straight connection.&amp;nbsp; Each country has a set of facts.&amp;nbsp; Fact2 measures are attached to one/more vendors in a country.&amp;nbsp; We moved the vendor country to the Fact2 table and duplicated the country key (%Fact2 Country) giving us the following diagram.&amp;nbsp; What we get on the load are fact2 rows duplicated for each occurence of a fact1 row.&amp;nbsp; &lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif; font-size: 13.3333px;"&gt;All facts in our model have a country.&amp;nbsp; &lt;/SPAN&gt;This give us what we need (all facts related directly/indirectly to the country).&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;We're not sure this is the most efficient design.&amp;nbsp; We've been reviewing &lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/download/3451-6-48718/Example on Mixed granularity - Budget vs Actuals.zip"&gt;generic keys example&lt;/A&gt;‌ but we get a checkerboarding effect where dimensions specific to one fact table will not show the other fact table. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;Table layout&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128447_Capture.JPG" style="height: 213px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;Script&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt; line-height: 1.5em;"&gt;[Fact1]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%Fact1Key,Measure1,Meausure2,%Country,%Category&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[Country]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%Country,%Fact2 Country, Country Name,Region&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[Category]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%Category,Category,Category Description&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[Fact2]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%Fact2Key,Measure3,Measure4,%Vendor,%Fact2 Country,%Status&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[Fact2 Log]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%Fact2Key, First Log Date, Last Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[Vendor]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%Vendor,Vendor ID,Vendor Name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[Status]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%Status, Status, Status Description&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2016 23:48:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Migrate-to-generic-key-model/m-p/1149650#M375850</guid>
      <dc:creator />
      <dc:date>2016-06-19T23:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Migrate to generic key model...</title>
      <link>https://community.qlik.com/t5/QlikView/Migrate-to-generic-key-model/m-p/1149651#M375851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it worked in this way like you and your users expected it I wouldn't change it and are the response-times are too slow I would concatenate the fact-tables but only then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 11:27:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Migrate-to-generic-key-model/m-p/1149651#M375851</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-06-20T11:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Migrate to generic key model...</title>
      <link>https://community.qlik.com/t5/QlikView/Migrate-to-generic-key-model/m-p/1149652#M375852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I may not be correct on this, since you have two country fields in the Country table(%Country, %Fact2 Country), if you expect different values in these two fields in one record then Country Name will be a confusing field. You may need two country name fields. OR if you expect both fields to be always have same value in one record then not sure why we should keep them separate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 12:19:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Migrate-to-generic-key-model/m-p/1149652#M375852</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-06-20T12:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Migrate to generic key model...</title>
      <link>https://community.qlik.com/t5/QlikView/Migrate-to-generic-key-model/m-p/1149653#M375853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At first, we had the tables concatenated but the filters (e.g. Category) were only showing one fact table.&amp;nbsp; If we wanted a star schema, are generic keys the solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 12:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Migrate-to-generic-key-model/m-p/1149653#M375853</guid>
      <dc:creator />
      <dc:date>2016-06-20T12:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Migrate to generic key model...</title>
      <link>https://community.qlik.com/t5/QlikView/Migrate-to-generic-key-model/m-p/1149654#M375854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think that generic keys would be the best solution for you. Like above mentioned without a serious problem I wouldn't change it - if you concatenate the tables and one or both of the fact-tables are missing some dimension-fields like Category you could add them. I would very probably in this case load the Country-CategoryID as mapping-table before loading the fact-tables and would then add these information per applymap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This meant you might need some intermediate-step to create your datamodel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 13:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Migrate-to-generic-key-model/m-p/1149654#M375854</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-06-20T13:14:08Z</dc:date>
    </item>
  </channel>
</rss>

