<?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: Summarize 2 different tables with filters and returning null for empty results in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-2-different-tables-with-filters-and-returning-null-for/m-p/3440299#M130656</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In Power Query select 'Merge Queries As New' to create you Table3. Before you Left Outer join them together remove&amp;nbsp; "&lt;SPAN&gt;conclude" from Table2. The Results will give you the following once you expand the Table2 Results.&lt;BR /&gt;&lt;BR /&gt;Results:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2023 16:13:05 GMT</pubDate>
    <dc:creator>SQL_SousChef</dc:creator>
    <dc:date>2023-09-20T16:13:05Z</dc:date>
    <item>
      <title>Summarize 2 different tables with filters and returning null for empty results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-2-different-tables-with-filters-and-returning-null-for/m-p/3440184#M130649</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;How is it possible to summarize together 2 different tables, excluding some values based on the results of a column?&lt;BR /&gt;&lt;BR /&gt;For the following scenario:&lt;BR /&gt;&lt;BR /&gt;I have a Table1 with unique IDs:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;table1&lt;/TD&gt;&lt;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&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;I would like to combine both tables into a Table3, where I have all ID's from Table1, and all the reasons from Table2, excluding the reason "conclude", also, when there is no reason for the IDs, the result will be "null":&lt;BR /&gt;&lt;BR /&gt;note: for ID 3, there is only "conclude", so the result would be null, because I need to exclude when the reason is "conclude"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;table3&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;reason&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;steady&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;not okay&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;steady&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;null&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;null&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;null&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;away&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;I have thousands of reasons, so it would be easier to have a filter that excludes only when the reason is &amp;lt;&amp;gt; "conclude".&lt;BR /&gt;&lt;BR /&gt;Thx!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 14:56:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-2-different-tables-with-filters-and-returning-null-for/m-p/3440184#M130649</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-20T14:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize 2 different tables with filters and returning null for empty results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-2-different-tables-with-filters-and-returning-null-for/m-p/3440299#M130656</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In Power Query select 'Merge Queries As New' to create you Table3. Before you Left Outer join them together remove&amp;nbsp; "&lt;SPAN&gt;conclude" from Table2. The Results will give you the following once you expand the Table2 Results.&lt;BR /&gt;&lt;BR /&gt;Results:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 16:13:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-2-different-tables-with-filters-and-returning-null-for/m-p/3440299#M130656</guid>
      <dc:creator>SQL_SousChef</dc:creator>
      <dc:date>2023-09-20T16:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize 2 different tables with filters and returning null for empty results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-2-different-tables-with-filters-and-returning-null-for/m-p/3440313#M130658</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this works. Otherwise, we can also use GENERATE function.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Table3 =&lt;BR /&gt;NATURALLEFTOUTERJOIN (&lt;BR /&gt;SELECTCOLUMNS ( Table1, "ID", Table1[ID] &amp;amp; "" ),&lt;BR /&gt;SELECTCOLUMNS (&lt;BR /&gt;FILTER ( Table2, Table2[Reason] &amp;lt;&amp;gt; "Conclude" ),&lt;BR /&gt;"ID", Table2[ID] &amp;amp; "",&lt;BR /&gt;"Reason", Table2[Reason]&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 16:19:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-2-different-tables-with-filters-and-returning-null-for/m-p/3440313#M130658</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-09-20T16:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize 2 different tables with filters and returning null for empty results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-2-different-tables-with-filters-and-returning-null-for/m-p/3440497#M130665</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 18:37:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-2-different-tables-with-filters-and-returning-null-for/m-p/3440497#M130665</guid>
      <dc:creator>ThxAlot</dc:creator>
      <dc:date>2023-09-20T18:37:32Z</dc:date>
    </item>
  </channel>
</rss>

