<?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: DirectQuery + composite model : What can be done ? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-composite-model-What-can-be-done/m-p/2211228#M52180</link>
    <description>&lt;P&gt;I think&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;is correct. You can't union the tables without loading Fact_Table_1 into your model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One possible solution is to have both fact tables hooked up to the same dimension tables and define your base measures like this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SumSales = SUM ( Fact_Table_1[Sales] ) + SUM ( Fact_Table_2[Sales] )&lt;/LI-CODE&gt;
&lt;P&gt;This abstracts away the separation for any higher-level measures that depend on such base measures.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Nov 2021 05:06:01 GMT</pubDate>
    <dc:creator>AlexisOlson</dc:creator>
    <dc:date>2021-11-29T05:06:01Z</dc:date>
    <item>
      <title>DirectQuery + composite model : What can be done ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-composite-model-What-can-be-done/m-p/2210878#M52173</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I'm going to build the following composite data model:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;From 2 fact tables:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Fact_Table_1: Storage mode = DirectQuery, more than 10M rows&lt;BR /&gt;Fact_Table_2: Storage mode = Import, 1K lines&lt;/P&gt;&lt;P&gt;Create a GLOBAL_FACT_TABLE table which is the UNION of Fact_Table_1 and Fact_Table_2.&lt;BR /&gt;(Fact_Table_1 and Fact_Table_2 have the same columns and data types)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then set up a star schema based on GLOBAL_FACT_TABLE with 4 dimension tables around: Dimension_Table_1&lt;BR /&gt;, Dimension_Table_2, Dimension_Table_3, Date_table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, create measures based on GLOBAL_FACT_TABLE and the 4 dimension tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the described schema:&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible ? I mean, is the DirectQuery + Composite model as magical as we could expect: can we make full use of some measures based on GLOBAL_FACT_TABLE without worrying about what's behind it to fetch the data from Fact_Table_1 and Fact_Table_2 ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not, what are the limitations?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;</description>
      <pubDate>Sun, 28 Nov 2021 19:35:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-composite-model-What-can-be-done/m-p/2210878#M52173</guid>
      <dc:creator>jct999</dc:creator>
      <dc:date>2021-11-28T19:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: DirectQuery + composite model : What can be done ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-composite-model-What-can-be-done/m-p/2210929#M52174</link>
      <description>&lt;P&gt;When you do the UNION you are creating a new calculated table in memory, which will not be very different from having both of your fact sources in Import Mode.&amp;nbsp; Not sure that is even possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you considered using Aggregations instead?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Nov 2021 22:10:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-composite-model-What-can-be-done/m-p/2210929#M52174</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-11-28T22:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: DirectQuery + composite model : What can be done ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-composite-model-What-can-be-done/m-p/2211228#M52180</link>
      <description>&lt;P&gt;I think&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;is correct. You can't union the tables without loading Fact_Table_1 into your model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One possible solution is to have both fact tables hooked up to the same dimension tables and define your base measures like this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SumSales = SUM ( Fact_Table_1[Sales] ) + SUM ( Fact_Table_2[Sales] )&lt;/LI-CODE&gt;
&lt;P&gt;This abstracts away the separation for any higher-level measures that depend on such base measures.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 05:06:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-composite-model-What-can-be-done/m-p/2211228#M52180</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2021-11-29T05:06:01Z</dc:date>
    </item>
  </channel>
</rss>

