<?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: Summarizing data from 2 different tables with Date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-data-from-2-different-tables-with-Date/m-p/4352141#M172827</link>
    <description>&lt;P&gt;Create a measure like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Combined Value = SUM( Historic[Value] ) + SUM( Future[Value] )&lt;/LI-CODE&gt;
&lt;P&gt;Put this in a matrix with columns from your date table.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jan 2025 16:17:13 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2025-01-06T16:17:13Z</dc:date>
    <item>
      <title>Summarizing data from 2 different tables with Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-data-from-2-different-tables-with-Date/m-p/4351038#M172785</link>
      <description>&lt;P&gt;I have 2 source tables, one with historical volume, the other with open or future volume.&amp;nbsp; Each table has a date column.&amp;nbsp; In my model I've created a unique date table with a range wide enough to cover both source tables.&amp;nbsp; I created a relationship to each source table from the "Date" table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My next dilemna is the need to create a visual that blends both the "Historical" and "Future" volume data by year and month.&amp;nbsp; My inclination is that I need to create a new column in my "Date" table that will summarize the volume data from both the "historical" and "future" tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My expected outcome is something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;JAN&lt;/TD&gt;&lt;TD&gt;FEB&lt;/TD&gt;&lt;TD&gt;MAR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2023&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;125&lt;/TD&gt;&lt;TD&gt;75&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2024&lt;/TD&gt;&lt;TD&gt;125&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2025&lt;/TD&gt;&lt;TD&gt;75&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciated,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jan 2025 17:21:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-data-from-2-different-tables-with-Date/m-p/4351038#M172785</guid>
      <dc:creator>unknown917</dc:creator>
      <dc:date>2025-01-05T17:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Summarizing data from 2 different tables with Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-data-from-2-different-tables-with-Date/m-p/4351072#M172786</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="712480" data-lia-user-login="unknown917" class="lia-mention lia-mention-user"&gt;unknown917&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;You have Dimdate table and made relationship to other tables with Date column. Perfect. So what ı don't understand is why don't you use year and month column from Dimdate and the values from other tables? Based on your case it will be solved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;BR /&gt;Gökberk Uzuntaş&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":pushpin:"&gt;📌&lt;/span&gt; If this post helps, then please consider &lt;STRONG&gt;Accepting it as a solution&lt;/STRONG&gt; and giving &lt;STRONG&gt;Kudos&lt;/STRONG&gt; — it helps other members find answers faster!&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":link:"&gt;🔗&lt;/span&gt; &lt;STRONG&gt;Stay Connected:&lt;/STRONG&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":blue_book:"&gt;📘&lt;/span&gt; &lt;A href="https://medium.com/@uzuntasgokberk" target="_blank" rel="noopener"&gt;Medium&lt;/A&gt; |&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":television:"&gt;📺&lt;/span&gt; &lt;A href="https://youtube.com/@uzuntasgokberk" target="_blank" rel="noopener"&gt;YouTube&lt;/A&gt; |&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":briefcase:"&gt;💼&lt;/span&gt; &lt;A href="https://linkedin.com/in/uzuntasgokberk" target="_blank" rel="noopener"&gt;LinkedIn&lt;/A&gt; |&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":camera:"&gt;📷&lt;/span&gt; &lt;A href="https://instagram.com/developeruzuntasgokberk" target="_blank" rel="noopener"&gt;Instagram&lt;/A&gt; |&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":bird:"&gt;🐦&lt;/span&gt; &lt;A href="https://x.com/uzuntasgokberk" target="_blank" rel="noopener"&gt;X&lt;/A&gt; |&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":alien:"&gt;👽&lt;/span&gt; &lt;A href="https://reddit.com/user/uzuntasgokberk" target="_blank" rel="noopener"&gt;Reddit&lt;/A&gt; |&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":globe_with_meridians:"&gt;🌐&lt;/span&gt; &lt;A href="https://uzuntasgokberk.com" target="_blank" rel="noopener"&gt;Website&lt;/A&gt; |&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":musical_note:"&gt;🎵&lt;/span&gt; &lt;A href="https://tiktok.com/@uzuntasgokberk" target="_blank" rel="noopener"&gt;TikTok&lt;/A&gt; |&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 13:25:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-data-from-2-different-tables-with-Date/m-p/4351072#M172786</guid>
      <dc:creator>uzuntasgokberk</dc:creator>
      <dc:date>2025-07-14T13:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Summarizing data from 2 different tables with Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-data-from-2-different-tables-with-Date/m-p/4351078#M172787</link>
      <description>&lt;P&gt;doing that resulted in a 2nd column for the 2025 (future) entry.&amp;nbsp; For instance, 2023 &amp;amp; 2024 existed in one column for January, 2025 existed in a column adjacent.&amp;nbsp; See below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;JAN&lt;/TD&gt;&lt;TD&gt;JAN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2023&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2024&lt;/TD&gt;&lt;TD&gt;125&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2025&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;75&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sun, 05 Jan 2025 20:14:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-data-from-2-different-tables-with-Date/m-p/4351078#M172787</guid>
      <dc:creator>unknown917</dc:creator>
      <dc:date>2025-01-05T20:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Summarizing data from 2 different tables with Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-data-from-2-different-tables-with-Date/m-p/4351081#M172788</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="712480" data-lia-user-login="unknown917" class="lia-mention lia-mention-user"&gt;unknown917&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a look at this.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://1drv.ms/u/c/64051cfa8dac7a71/EV_j5lnYavFCi1zAvzowfs0BPvhfR9u-9lxAQ3-J3WBxrw?e=1Ga9mC" target="_blank"&gt;Summarizing data from 2 different tables with Date.pbix&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jan 2025 20:22:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-data-from-2-different-tables-with-Date/m-p/4351081#M172788</guid>
      <dc:creator>gmsamborn</dc:creator>
      <dc:date>2025-01-05T20:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Summarizing data from 2 different tables with Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-data-from-2-different-tables-with-Date/m-p/4351095#M172791</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="712480" data-lia-user-login="unknown917" class="lia-mention lia-mention-user"&gt;unknown917&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I didn't see your post when I added mine.&lt;/P&gt;
&lt;P&gt;Here is an example that has JAN 2025 as Historical instead of Future.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://1drv.ms/u/c/64051cfa8dac7a71/EYIFiI5ClflJm4vWrH5x0qgBlEriOVvT87JU5nr68edh6Q?e=oYI1oU" target="_blank" rel="noopener"&gt;Summarizing data from 2 different tables with Date 2.pbix&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jan 2025 22:45:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-data-from-2-different-tables-with-Date/m-p/4351095#M172791</guid>
      <dc:creator>gmsamborn</dc:creator>
      <dc:date>2025-01-05T22:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Summarizing data from 2 different tables with Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-data-from-2-different-tables-with-Date/m-p/4352141#M172827</link>
      <description>&lt;P&gt;Create a measure like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Combined Value = SUM( Historic[Value] ) + SUM( Future[Value] )&lt;/LI-CODE&gt;
&lt;P&gt;Put this in a matrix with columns from your date table.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 16:17:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-data-from-2-different-tables-with-Date/m-p/4352141#M172827</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2025-01-06T16:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Summarizing data from 2 different tables with Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-data-from-2-different-tables-with-Date/m-p/4352839#M172845</link>
      <description>&lt;P&gt;Hello,johnt75&amp;nbsp;,gmsamborn&amp;nbsp;and uzuntasgokberk ,thanks for your concern about this issue.&lt;/P&gt;
&lt;P&gt;Your answers are excellent!&lt;BR /&gt;And I would like to share some additional solutions below.&lt;/P&gt;
&lt;P&gt;Hi,&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="712480" data-lia-user-login="unknown917" class="lia-mention lia-mention-user"&gt;unknown917&lt;/a&gt; .I am glad to help you.&lt;BR /&gt;I tried the idea you suggested for the DATE table that has all the data, and added a new calculated column that has all the data from both tables, which ensures that the data is displayed normally as one row in the matrix&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;My test data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;BR /&gt;This is the optimized dax code&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;The model relationship:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my test code&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;AllDailySales = 
IF (
    SELECTCOLUMNS ( RELATEDTABLE ( historical ), "a", [DailySales] ) &amp;lt;&amp;gt; BLANK (),
    SELECTCOLUMNS ( RELATEDTABLE ( historical ), "a", [DailySales] ),
    SELECTCOLUMNS ( RELATEDTABLE ( future ), "b", 'future'[Forecast daily sales] )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Suggestion2&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I also tested the solution proposed by johnt75, which uses a matrix to present the data, and can achieve similar results.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TestAllMeasure =
SUM ( 'historical'[DailySales] ) + SUM ( 'future'[Forecast daily sales] )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.&lt;BR /&gt;Best Regards,&lt;BR /&gt;Carson Jian&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 06:14:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarizing-data-from-2-different-tables-with-Date/m-p/4352839#M172845</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-07T06:14:23Z</dc:date>
    </item>
  </channel>
</rss>

