<?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 Sum columns from different fact tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-columns-from-different-fact-tables/m-p/2148883#M49486</link>
    <description>&lt;DIV class="lia-message-subject lia-component-message-view-widget-subject"&gt;&lt;DIV class="MessageSubject"&gt;&lt;DIV class="lia-message-subject"&gt;&lt;SPAN&gt;Hello, good afternoon.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help to resolve the following situation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two fact tables, where both have a column called TotalSale in the first has data only from Empresa1 and the other from Empresa2, where I made a relationship in an intermediate table called Empresas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a table like the one above where my first column receives as business rows (intermediate table), I have another dimension table with the dates, and where is 2020 is summed the columns TotalSale of both tables facts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made the following formula for the year 2020:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT&gt;&lt;SPAN&gt;Faturamento Ano Anterior =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;fato_Pro_FaturamentoPorItens[TotalVenda]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;Value&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;dim_Tempo[Ano]&lt;/SPAN&gt;&lt;SPAN&gt;)=&lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Now&lt;/SPAN&gt;&lt;SPAN&gt;())-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;With this formula I get the sum of only one Fact table, how to sum the TotalSale column of the other Fact table?&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 21 Oct 2021 18:45:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-10-21T18:45:39Z</dc:date>
    <item>
      <title>Sum columns from different fact tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-columns-from-different-fact-tables/m-p/2148883#M49486</link>
      <description>&lt;DIV class="lia-message-subject lia-component-message-view-widget-subject"&gt;&lt;DIV class="MessageSubject"&gt;&lt;DIV class="lia-message-subject"&gt;&lt;SPAN&gt;Hello, good afternoon.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help to resolve the following situation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two fact tables, where both have a column called TotalSale in the first has data only from Empresa1 and the other from Empresa2, where I made a relationship in an intermediate table called Empresas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a table like the one above where my first column receives as business rows (intermediate table), I have another dimension table with the dates, and where is 2020 is summed the columns TotalSale of both tables facts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made the following formula for the year 2020:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT&gt;&lt;SPAN&gt;Faturamento Ano Anterior =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;fato_Pro_FaturamentoPorItens[TotalVenda]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;Value&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;dim_Tempo[Ano]&lt;/SPAN&gt;&lt;SPAN&gt;)=&lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Now&lt;/SPAN&gt;&lt;SPAN&gt;())-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;With this formula I get the sum of only one Fact table, how to sum the TotalSale column of the other Fact table?&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Oct 2021 18:45:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-columns-from-different-fact-tables/m-p/2148883#M49486</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-21T18:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sum columns from different fact tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-columns-from-different-fact-tables/m-p/2149513#M49500</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Append these tables in power query &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;create common dimensions like time, geography and one for Empresa1&amp;nbsp; and Empresa2( Table with two values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then using these dimensions you can analyze measures together can add those measures to get total across two tables&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 04:29:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-columns-from-different-fact-tables/m-p/2149513#M49500</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-10-22T04:29:06Z</dc:date>
    </item>
  </channel>
</rss>

