<?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: Grouping &amp;amp; combining values from several tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-amp-combining-values-from-several-tables/m-p/3129630#M111288</link>
    <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="527111" data-lia-user-login="royales" class="lia-mention lia-mention-user"&gt;royales&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;Table1:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create calculated table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table =
var _table1=
SUMMARIZE(
    'Table1','Table1'[Region Name],"DeathA",SUMX(ALL('Table1'),[Death A]),"DeathB",SUMX(ALL('Table1'),[Death B]),"DeathC",SUMX(ALL('Table1'),[Death C]))
var _table2=
SUMMARIZE(
    'Table2','Table2'[Region Name],"DeathA",SUMX(ALL('Table2'),[Death A]),"DeathB",SUMX(ALL('Table2'),[Death B]),"DeathC",SUMX(ALL('Table2'),[Death C]))
var _table3=
SUMMARIZE(
    'Table3','Table3'[Region Name],"DeathA",SUMX(ALL('Table3'),[Death A]),"DeathB",SUMX(ALL('Table3'),[Death B]),"DeathC",SUMX(ALL('Table3'),[Death C]))
return
UNION(
_table1,_table2,_table3)&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If I have misunderstood your meaning, please provide your desired output and your pbix file without privacy information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
    <pubDate>Tue, 14 Mar 2023 02:50:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-03-14T02:50:14Z</dc:date>
    <item>
      <title>Grouping &amp; combining values from several tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-amp-combining-values-from-several-tables/m-p/3122527#M110815</link>
      <description>&lt;P&gt;I have 3 tables (for 3 different causes of death). Each table has Country list,&amp;nbsp; Region, Number of deaths.&lt;/P&gt;&lt;P&gt;How do I create a table /measure that will summarize into something like this&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Region&lt;/TD&gt;&lt;TD&gt;Death A&lt;/TD&gt;&lt;TD&gt;Death B&lt;/TD&gt;&lt;TD&gt;Death C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Asia&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;North America&lt;/TD&gt;&lt;TD&gt;400&lt;/TD&gt;&lt;TD&gt;400&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you. Very new to Power BI&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 21:01:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-amp-combining-values-from-several-tables/m-p/3122527#M110815</guid>
      <dc:creator>royales</dc:creator>
      <dc:date>2023-03-09T21:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping &amp; combining values from several tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-amp-combining-values-from-several-tables/m-p/3122619#M110821</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="527111" data-lia-user-login="royales" class="lia-mention lia-mention-user"&gt;royales&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how are the tables related?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 22:25:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-amp-combining-values-from-several-tables/m-p/3122619#M110821</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-03-09T22:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping &amp; combining values from several tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-amp-combining-values-from-several-tables/m-p/3122826#M110842</link>
      <description>&lt;P&gt;when i put them in power BI, no relationship was created between these tables. I downloaded this data for a project and I got like 5 separate tables. Basically, they all look like this, except for the last column where the XX and Death number changes&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Region Name&lt;/TD&gt;&lt;TD&gt;Country Name&lt;/TD&gt;&lt;TD&gt;Year&lt;/TD&gt;&lt;TD&gt;Age Group&lt;/TD&gt;&lt;TD&gt;Death by XX&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;South America&lt;/TD&gt;&lt;TD&gt;Brazil&lt;/TD&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;[20-29]&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;South America&lt;/TD&gt;&lt;TD&gt;Brazil&lt;/TD&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;[30-39]&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;And the list goes on til country Z, year 2021, and age group 80, so it's a long list&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 01:51:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-amp-combining-values-from-several-tables/m-p/3122826#M110842</guid>
      <dc:creator>royales</dc:creator>
      <dc:date>2023-03-10T01:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping &amp; combining values from several tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-amp-combining-values-from-several-tables/m-p/3129630#M111288</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="527111" data-lia-user-login="royales" class="lia-mention lia-mention-user"&gt;royales&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;Table1:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create calculated table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table =
var _table1=
SUMMARIZE(
    'Table1','Table1'[Region Name],"DeathA",SUMX(ALL('Table1'),[Death A]),"DeathB",SUMX(ALL('Table1'),[Death B]),"DeathC",SUMX(ALL('Table1'),[Death C]))
var _table2=
SUMMARIZE(
    'Table2','Table2'[Region Name],"DeathA",SUMX(ALL('Table2'),[Death A]),"DeathB",SUMX(ALL('Table2'),[Death B]),"DeathC",SUMX(ALL('Table2'),[Death C]))
var _table3=
SUMMARIZE(
    'Table3','Table3'[Region Name],"DeathA",SUMX(ALL('Table3'),[Death A]),"DeathB",SUMX(ALL('Table3'),[Death B]),"DeathC",SUMX(ALL('Table3'),[Death C]))
return
UNION(
_table1,_table2,_table3)&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If I have misunderstood your meaning, please provide your desired output and your pbix file without privacy information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 02:50:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-amp-combining-values-from-several-tables/m-p/3129630#M111288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-14T02:50:14Z</dc:date>
    </item>
  </channel>
</rss>

