<?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 Modeling, creating a Fact from Header and Detail tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-Modeling-creating-a-Fact-from-Header-and-Detail-tables/m-p/1271338#M848300</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course! Send me the QVW if you want.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Mar 2017 07:41:29 GMT</pubDate>
    <dc:creator>hector_munoz</dc:creator>
    <dc:date>2017-03-24T07:41:29Z</dc:date>
    <item>
      <title>Data Modeling, creating a Fact from Header and Detail tables</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modeling-creating-a-Fact-from-Header-and-Detail-tables/m-p/1271333#M848295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys&lt;/P&gt;&lt;P&gt;I am a bit new to the modeling in qlick, I have already done some research about creating a star schema from a relational DB. &lt;/P&gt;&lt;P&gt;I have done these steps so far: &lt;/P&gt;&lt;P&gt;1- Connected to DB&lt;/P&gt;&lt;P&gt;2-Selected some tables and columns&lt;/P&gt;&lt;P&gt;3-Made sure each table has a primary key&lt;/P&gt;&lt;P&gt;4-Removed all relationships between tables by renaming foreign keys&lt;/P&gt;&lt;P&gt;5-Created a link table by concatenating primary keys of Dim Table&amp;nbsp; (Which I am not sure whether I did the right thing or not) &lt;/P&gt;&lt;P&gt;6-Joined the sales Header and Detail tables to create a Fact table. &lt;/P&gt;&lt;P&gt;Now, the problem is some values in Header table have different granularity than Detail's, for example Cost. How can I divide the amount proportionally between lines of detail table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ShipDim:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipOrderID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipOrderDetailID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipMethod,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident ShipDetail;&lt;/P&gt;&lt;P&gt; left join&amp;nbsp; load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipOrderID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RegDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Status,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tax,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cost&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident ShipHeader; &lt;/P&gt;&lt;P&gt;Would you please let me know your opinion on the whole design and let me know how I can make it right? &lt;/P&gt;&lt;P&gt;Thank you so much&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/Data-Modeling-creating-a-Fact-from-Header-and-Detail-tables/m-p/1271333#M848295</guid>
      <dc:creator>arixooo123</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Data Modeling, creating a Fact from Header and Detail tables</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modeling-creating-a-Fact-from-Header-and-Detail-tables/m-p/1271334#M848296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A quick trick is to add the number of records (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ShipOrderDetailID&lt;/SPAN&gt;) that a &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ShipOrderID&lt;/SPAN&gt; has. You can do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ShipDim&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;ShipOrderID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(ShipOrderDetailID)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS [# &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ShipOrderDetails&lt;/SPAN&gt;],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RESIDENT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ShipDetail&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;GROUP BY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;ShipOrderID&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the expressions you can divide &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Cost&lt;/SPAN&gt; / &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[# &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ShipOrderDetails&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;]&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, maybe you should not join into one if this could mean future problems...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 04:34:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modeling-creating-a-Fact-from-Header-and-Detail-tables/m-p/1271334#M848296</guid>
      <dc:creator>hector_munoz</dc:creator>
      <dc:date>2017-03-24T04:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Data Modeling, creating a Fact from Header and Detail tables</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modeling-creating-a-Fact-from-Header-and-Detail-tables/m-p/1271335#M848297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Munoz, &lt;/P&gt;&lt;P&gt;Thanks for your response. &lt;/P&gt;&lt;P&gt;Any comment of the rest of modeling procedure? &lt;/P&gt;&lt;P&gt;Am I doing it right? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 04:40:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modeling-creating-a-Fact-from-Header-and-Detail-tables/m-p/1271335#M848297</guid>
      <dc:creator>arixooo123</dc:creator>
      <dc:date>2017-03-24T04:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Data Modeling, creating a Fact from Header and Detail tables</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modeling-creating-a-Fact-from-Header-and-Detail-tables/m-p/1271336#M848298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As you said, you are new in Qlik but you are creating link tables, asking in the forum, guessing how to improve things... I think the answer is yes! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 04:44:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modeling-creating-a-Fact-from-Header-and-Detail-tables/m-p/1271336#M848298</guid>
      <dc:creator>hector_munoz</dc:creator>
      <dc:date>2017-03-24T04:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Data Modeling, creating a Fact from Header and Detail tables</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modeling-creating-a-Fact-from-Header-and-Detail-tables/m-p/1271337#M848299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Munoz&lt;/P&gt;&lt;P&gt;I guess there's a problem in my model. &lt;/P&gt;&lt;P&gt;I created the link table only by concatenation, added the primary keys of all dimension tables to link table but the columns have no relationship. I guess I should have joined the tables instead, Right? &lt;/P&gt;&lt;P&gt;Besides, I am getting an error while executing the expression you shared. would you please accept my follow request so I can send you the logs there? &lt;/P&gt;&lt;P&gt;Thank you so much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 06:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modeling-creating-a-Fact-from-Header-and-Detail-tables/m-p/1271337#M848299</guid>
      <dc:creator>arixooo123</dc:creator>
      <dc:date>2017-03-24T06:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Data Modeling, creating a Fact from Header and Detail tables</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modeling-creating-a-Fact-from-Header-and-Detail-tables/m-p/1271338#M848300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course! Send me the QVW if you want.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 07:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modeling-creating-a-Fact-from-Header-and-Detail-tables/m-p/1271338#M848300</guid>
      <dc:creator>hector_munoz</dc:creator>
      <dc:date>2017-03-24T07:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Data Modeling, creating a Fact from Header and Detail tables</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modeling-creating-a-Fact-from-Header-and-Detail-tables/m-p/1271339#M848301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Munoz, &lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Is it possible for you to give me your email address? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 07:48:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modeling-creating-a-Fact-from-Header-and-Detail-tables/m-p/1271339#M848301</guid>
      <dc:creator>arixooo123</dc:creator>
      <dc:date>2017-03-24T07:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Data Modeling, creating a Fact from Header and Detail tables</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modeling-creating-a-Fact-from-Header-and-Detail-tables/m-p/1271340#M848302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be look here. Link table is nothing but all similar fields created the there own table while using Link table. PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Mar 2017 16:32:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modeling-creating-a-Fact-from-Header-and-Detail-tables/m-p/1271340#M848302</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-03-25T16:32:20Z</dc:date>
    </item>
  </channel>
</rss>

