<?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: Creating Multiple Fact Tables with Shared Dimensions in Qlik Sense App for Filtering in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Creating-Multiple-Fact-Tables-with-Shared-Dimensions-in-Qlik/m-p/2063817#M87263</link>
    <description>&lt;P&gt;May I ask you to explain with this sample:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;fact1:&lt;BR /&gt;LOAD * INLINE &lt;BR /&gt;[dim_a, dim_b, dim_c &lt;BR /&gt;John, a, USA &lt;BR /&gt;Mary, b, Canada &lt;BR /&gt;Peter, c, UK];&lt;/P&gt;
&lt;P&gt;fact2:&lt;BR /&gt;LOAD * INLINE &lt;BR /&gt;[dim_a, dim_b, dim_d, measure_1 &lt;BR /&gt;John, b, abc,1&lt;BR /&gt;Mary, c, def,2&lt;BR /&gt;Mary, e, def,4&lt;BR /&gt;Peter, d, ghf,3];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parviz_asoodehfard_0-1682357508185.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105660iD998340DCA2E885D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="parviz_asoodehfard_0-1682357508185.png" alt="parviz_asoodehfard_0-1682357508185.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;when I show fact1 in a table, I see this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parviz_asoodehfard_0-1682366691151.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105674i3549853D7C3A307B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="parviz_asoodehfard_0-1682366691151.png" alt="parviz_asoodehfard_0-1682366691151.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Apr 2023 20:06:08 GMT</pubDate>
    <dc:creator>parviz_asoodehfard</dc:creator>
    <dc:date>2023-04-24T20:06:08Z</dc:date>
    <item>
      <title>Creating Multiple Fact Tables with Shared Dimensions in Qlik Sense App for Filtering</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-Multiple-Fact-Tables-with-Shared-Dimensions-in-Qlik/m-p/2063774#M87257</link>
      <description>&lt;P&gt;How can I create multiple fact tables in one Qlik Sense app with shared dimensions for filtering, without displaying more than one fact field at a time? My goal is to be able to filter all facts by the common dimensions, but not to create any visualizations or tables with more than one fact field. What steps should I follow to achieve this in Qlik Sense?&lt;/P&gt;
&lt;P&gt;I should mention that I don't like to joining two tables on a common field, since could result in a Cartesian product or a large number of duplicates if the common field is not unique.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 15:16:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-Multiple-Fact-Tables-with-Shared-Dimensions-in-Qlik/m-p/2063774#M87257</guid>
      <dc:creator>parviz_asoodehfard</dc:creator>
      <dc:date>2023-04-24T15:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Multiple Fact Tables with Shared Dimensions in Qlik Sense App for Filtering</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-Multiple-Fact-Tables-with-Shared-Dimensions-in-Qlik/m-p/2063793#M87259</link>
      <description>&lt;P&gt;The recommended approach is to create the data-model as star-scheme with just a single fact-table with n dimension-tables. The most tables respectively table-parts should be merged vertically by a concatenation with appropriate harmonizing of the field-names and field-values and the the others with joins and/or often better with mappings.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 15:47:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-Multiple-Fact-Tables-with-Shared-Dimensions-in-Qlik/m-p/2063793#M87259</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-04-24T15:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Multiple Fact Tables with Shared Dimensions in Qlik Sense App for Filtering</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-Multiple-Fact-Tables-with-Shared-Dimensions-in-Qlik/m-p/2063817#M87263</link>
      <description>&lt;P&gt;May I ask you to explain with this sample:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;fact1:&lt;BR /&gt;LOAD * INLINE &lt;BR /&gt;[dim_a, dim_b, dim_c &lt;BR /&gt;John, a, USA &lt;BR /&gt;Mary, b, Canada &lt;BR /&gt;Peter, c, UK];&lt;/P&gt;
&lt;P&gt;fact2:&lt;BR /&gt;LOAD * INLINE &lt;BR /&gt;[dim_a, dim_b, dim_d, measure_1 &lt;BR /&gt;John, b, abc,1&lt;BR /&gt;Mary, c, def,2&lt;BR /&gt;Mary, e, def,4&lt;BR /&gt;Peter, d, ghf,3];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parviz_asoodehfard_0-1682357508185.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105660iD998340DCA2E885D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="parviz_asoodehfard_0-1682357508185.png" alt="parviz_asoodehfard_0-1682357508185.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;when I show fact1 in a table, I see this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parviz_asoodehfard_0-1682366691151.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105674i3549853D7C3A307B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="parviz_asoodehfard_0-1682366691151.png" alt="parviz_asoodehfard_0-1682366691151.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 20:06:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-Multiple-Fact-Tables-with-Shared-Dimensions-in-Qlik/m-p/2063817#M87263</guid>
      <dc:creator>parviz_asoodehfard</dc:creator>
      <dc:date>2023-04-24T20:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Multiple Fact Tables with Shared Dimensions in Qlik Sense App for Filtering</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-Multiple-Fact-Tables-with-Shared-Dimensions-in-Qlik/m-p/2063871#M87267</link>
      <description>&lt;P&gt;there are at least two ways to model this, the simplest is to&amp;nbsp;concatenate these two facts into one table, but you may want to add a field that makes a disinction between the two data sets:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;fact:
LOAD 'fact1' as dataSet, * INLINE
[dim_a, dim_b, dim_c
John, a, USA
Mary, b, Canada
Peter, c, UK];

concatenate (fact)
LOAD 'fact2' as dataSet, * INLINE
[dim_a, dim_b, dim_d, measure_1
John, b, abc,1
Mary, c, def,2
Mary, e, def,4
Peter, d, ghf,3];&lt;/LI-CODE&gt;
&lt;P&gt;if you want to create an expression for the first data set use the set analysis&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sum({&amp;lt;dataSet={'fact1'}&amp;gt;}...&lt;/LI-CODE&gt;
&lt;P&gt;this way you are controlling which data set you wish to use&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 20:33:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-Multiple-Fact-Tables-with-Shared-Dimensions-in-Qlik/m-p/2063871#M87267</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2023-04-24T20:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Multiple Fact Tables with Shared Dimensions in Qlik Sense App for Filtering</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-Multiple-Fact-Tables-with-Shared-Dimensions-in-Qlik/m-p/2064031#M87281</link>
      <description>&lt;P&gt;Just follow the example from &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58578"&gt;@edwin&lt;/a&gt;. It avoids trouble with synthetic keys and/or circular loops, provides the access to all exists data (which could be never ensured by joining/associating tables) and enables also the possibility to differentiate between the sources.&lt;/P&gt;
&lt;P&gt;Beside this it's the most simplest and fastest approach to build a data-model and could be applied as general solution. All other ways are more complex and more complicated and are requiring much more knowledge and experience - without any guarantee to get a better working or more performant data-model.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 07:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-Multiple-Fact-Tables-with-Shared-Dimensions-in-Qlik/m-p/2064031#M87281</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-04-25T07:01:48Z</dc:date>
    </item>
  </channel>
</rss>

