<?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: How to join multiple facts into a single table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736900#M263545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, if you can&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jul 2014 07:56:52 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2014-07-24T07:56:52Z</dc:date>
    <item>
      <title>How to join multiple facts into a single table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736893#M263538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have multiple fact tables coming from multiple QVW's and in my application i want to have a centralised fact where we have only 1 fact and multiple dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i do a outer join or inner join or even concatenate those 2 facts then the values i get for the lets say sales are huge which looks like they are cross joined.&lt;/P&gt;&lt;P&gt;SO, Can someone please help me with any suggestions on how to join multiple facts into a single fact table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 00:56:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736893#M263538</guid>
      <dc:creator />
      <dc:date>2014-07-24T00:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to join multiple facts into a single table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736894#M263539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want 1 fact table from multiple tables maybe you need a concatenate&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/05/17/concatenate-vs-link-table" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/05/17/concatenate-vs-link-table"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/05/17/concatenate-vs-link-table&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 01:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736894#M263539</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-07-24T01:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to join multiple facts into a single table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736895#M263540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Grossi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like we can use concatenate when we have 2 fact tables with same columns,how about if i have 2 fact tables with just one same column and remaining all different columns?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 01:57:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736895#M263540</guid>
      <dc:creator />
      <dc:date>2014-07-24T01:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to join multiple facts into a single table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736896#M263541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look into Link Tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 02:05:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736896#M263541</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-24T02:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to join multiple facts into a single table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736897#M263542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can concatenate tables also when there isn't common fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;a:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load * inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;field1, field2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;a, 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;aa, 11&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;concatenate (a)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load * inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;f3, f4&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;a, 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;aa, 11&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/62992_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 02:08:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736897#M263542</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-07-24T02:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to join multiple facts into a single table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736898#M263543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Massimo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried concatenate but as i mentioned earlier that if i do concatenate then the values of sales are showing up huge instead of their original values, May be if i attach my QVW does that help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 02:30:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736898#M263543</guid>
      <dc:creator />
      <dc:date>2014-07-24T02:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to join multiple facts into a single table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736899#M263544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use the Left Join&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 03:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736899#M263544</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-24T03:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to join multiple facts into a single table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736900#M263545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, if you can&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 07:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736900#M263545</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-07-24T07:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to join multiple facts into a single table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736901#M263546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A concatenate will never cross join as it is not joining at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure that you don't have fields from both source tables going into the same field in the concatenated table.&amp;nbsp; This would certainly give you larger numbers than you are expecting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the AS statement to ensure that you get two separate columns in your concatenated table, rather than one column with too many numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check table viewer, if the concatenate didn't happen you will have two tables in the data model and no join between them.&amp;nbsp; That will give you a Cartesian join if you use fields from both tables in a single chart.&amp;nbsp; This will cause inflated numbers - and all kinds of other problems too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 08:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736901#M263546</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-07-24T08:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to join multiple facts into a single table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736902#M263547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Massimo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attched is my QVW, the values look fine now, however if i select TransactionChannelDesc as POS then the traffic goes blank?I know its because that traffic doesnt have a channel to it?But is there any way i can do the traffic such that it gives me the values even if i select POS?i know i can use set analysis in my code but for the textbox?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you have any questions or if i am unclear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 13:46:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736902#M263547</guid>
      <dc:creator />
      <dc:date>2014-07-24T13:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to join multiple facts into a single table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736903#M263548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are correct that Set Analysis is the way ahead.&amp;nbsp; You will need to ignore any selections in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;TransactionChannelDesc &lt;/STRONG&gt;for any expression where that value does not exist, eg:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TransactionChannelDesc&lt;/SPAN&gt;=&amp;gt;}MyValue)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if you've concatenated two tables and there are only some fields that are common, you will need to ignore a bunch of fields on any calculation - ie. the ones from the other table.&amp;nbsp; Suggest you create an ignore list for table 1 and for table 2, e.g. in your load script add:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let vIgnoreTable1 = 'Field1=,Field2=,Field3=';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let vIgnoreTable2 = 'FieldA=,FieldB=,FieldC=';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then use these in each expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;$(vIgnoreTable1)&amp;gt;}MyValue)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way if you bring in an extra field to either side of the concatenation you can just add it to the ignore list and not have to modify all of your expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work in charts and text boxes.&amp;nbsp; In the text box in your example you need an aggregation around your field to make it always show a value, eg.&amp;nbsp; &lt;STRONG&gt;max([Ly Date Key])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that all makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 14:18:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736903#M263548</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-07-24T14:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to join multiple facts into a single table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736904#M263549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking further at your app, you may be better off with a table associated on an concatenated key via a link table, rather than a JOIN or a CONCATENATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this, create an extra field in both QVD's, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;date(date#([Date Id],'YYYYMMDD')) &amp;amp; ':' &amp;amp;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt; [Loc #] as DateLocKey,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When loading into the front end, only load the DateLocKey in for each table (not the two fields that make it up).&amp;nbsp; Then create a link table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LinkTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DISTINCT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateLocKey,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; [Date ID] ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; [Loc #]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM C:\QlikView\Data\QVD\Transform\Sales_LocWk.qvd (Qvd)&lt;/STRONG&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LinkTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DISTINCT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; DateLocKey,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; [Date ID] ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; [Loc #]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM C:\QlikView\Data\QVD\Transform\StoreTraffic_LocWk.qvd (Qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are pro's and con's of both approaches.&amp;nbsp; Concatenate works best when you have many fields that are common between two tables, but when there are only two common fields the link table is good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way that selections work on the fields that are not in the link table differ between the two approaches, so you should make sure you understand what happens when you make selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 14:32:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-join-multiple-facts-into-a-single-table/m-p/736904#M263549</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-07-24T14:32:11Z</dc:date>
    </item>
  </channel>
</rss>

