<?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: Merging tables on Data warehouse or in qlikview? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Merging-tables-on-Data-warehouse-or-in-qlikview/m-p/1360615#M619384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider the attached image, I have two tables and I want to merge them while loading in Qlik. When joining the tables, Freight should be broken down into all the joined rows of Detail table. How to divide the amount of freight between the transactions in sales detail table when joining in qlik. &lt;IMG __jive_id="159406" alt="Quest.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/159406_Quest.png" style="height: 272px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Apr 2017 09:52:18 GMT</pubDate>
    <dc:creator>arixooo123</dc:creator>
    <dc:date>2017-04-07T09:52:18Z</dc:date>
    <item>
      <title>Merging tables on Data warehouse or in qlikview?</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-tables-on-Data-warehouse-or-in-qlikview/m-p/1360611#M619380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys, &lt;/P&gt;&lt;P&gt;I have two tables with many to one relationship (Sales Order Detail and Sales Order Header), I need to create a Sales Fact table and I am wondering whether I should do this on the DW side or while loading the tables in qlikview. &lt;/P&gt;&lt;P&gt;If I wanted to do it in qlik, what do you think I should do to divide the tax amount in Header table between the related rows in fact table? &lt;/P&gt;&lt;P&gt;I might come up with a SQL statement to do it in DW, but in qlik I am not really sure how I can do it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your answer&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashanti&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 09:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-tables-on-Data-warehouse-or-in-qlikview/m-p/1360611#M619380</guid>
      <dc:creator>arixooo123</dc:creator>
      <dc:date>2017-04-07T09:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Merging tables on Data warehouse or in qlikview?</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-tables-on-Data-warehouse-or-in-qlikview/m-p/1360612#M619381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fact is on top and then relation ship on bottom be help of Left Join like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, Data model looks only one single dimension table which directory called Location_Zip. Many to one relationship like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LZ:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load * &lt;/STRONG&gt;&lt;STRONG&gt;FROM &lt;/STRONG&gt;&lt;STRONG&gt;Path;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join(LZ)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Load * &lt;/STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;FROM &lt;/STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Path1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join(LZ)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Load * &lt;/STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;FROM &lt;/STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Path2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join(LZ)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Load * &lt;/STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;FROM &lt;/STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Path3;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 09:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-tables-on-Data-warehouse-or-in-qlikview/m-p/1360612#M619381</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-07T09:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Merging tables on Data warehouse or in qlikview?</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-tables-on-Data-warehouse-or-in-qlikview/m-p/1360613#M619382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer, But I am not sure that was the answer of my questions. &lt;/P&gt;&lt;P&gt;I had two questions: &lt;/P&gt;&lt;P&gt;1- Where should I merge the tables and why? (DW or Qlik )&lt;/P&gt;&lt;P&gt;2-If I wanted to merge them in qlik, how can I divide the amount of tax in Header table between the related rows in detail table? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 09:33:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-tables-on-Data-warehouse-or-in-qlikview/m-p/1360613#M619382</guid>
      <dc:creator>arixooo123</dc:creator>
      <dc:date>2017-04-07T09:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Merging tables on Data warehouse or in qlikview?</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-tables-on-Data-warehouse-or-in-qlikview/m-p/1360614#M619383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) If you want to do in Qlik go and merge. I am not aware of DW&lt;/P&gt;&lt;P&gt;2) You can use by split like below. We can do anything with Qlik as technical prospective and may be work around atleast. If you provide more information we may help better&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Header:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load Field1, Field2, 'amount of tax' as Flag from HeaderTable;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RelatedRows:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load Field1, Field2, 'rows related' as Flag from DetailTable;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 09:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-tables-on-Data-warehouse-or-in-qlikview/m-p/1360614#M619383</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-07T09:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Merging tables on Data warehouse or in qlikview?</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-tables-on-Data-warehouse-or-in-qlikview/m-p/1360615#M619384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider the attached image, I have two tables and I want to merge them while loading in Qlik. When joining the tables, Freight should be broken down into all the joined rows of Detail table. How to divide the amount of freight between the transactions in sales detail table when joining in qlik. &lt;IMG __jive_id="159406" alt="Quest.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/159406_Quest.png" style="height: 272px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 09:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-tables-on-Data-warehouse-or-in-qlikview/m-p/1360615#M619384</guid>
      <dc:creator>arixooo123</dc:creator>
      <dc:date>2017-04-07T09:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Merging tables on Data warehouse or in qlikview?</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-tables-on-Data-warehouse-or-in-qlikview/m-p/1360616#M619385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wrote the sql query for this for more clarification: &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; SELECT&amp;nbsp; A.[OrderID]&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,a.[ProductID]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,a.[UnitPrice] &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,a.[Quantity]&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,b.[Freight]* ([UnitPrice]*[Quantity]/(select sum([UnitPrice]*[Quantity])&amp;nbsp; from [[order details] as c where c.orderid=b.orderid) ) as freight_of_detail&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM&amp;nbsp; [Order Details] as A&lt;/P&gt;&lt;P&gt;inner join [orders] as b on (a.orderid=b.orderid)&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 13:28:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-tables-on-Data-warehouse-or-in-qlikview/m-p/1360616#M619385</guid>
      <dc:creator>arixooo123</dc:creator>
      <dc:date>2017-04-07T13:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Merging tables on Data warehouse or in qlikview?</title>
      <link>https://community.qlik.com/t5/QlikView/Merging-tables-on-Data-warehouse-or-in-qlikview/m-p/1360617#M619386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's possible because, You have one common field on your two tables. We can merge it in&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 14:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merging-tables-on-Data-warehouse-or-in-qlikview/m-p/1360617#M619386</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-07T14:18:04Z</dc:date>
    </item>
  </channel>
</rss>

