<?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: Append two tables based on the conditions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Append-two-tables-based-on-the-conditions/m-p/3487430#M133449</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="583663" data-lia-user-login="Learner27" class="lia-mention lia-mention-user"&gt;Learner27&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Could you clarify the logic?&lt;/LI&gt;
&lt;LI&gt;Should the condition be Table 1 Column 1 is not in Table 2 Column 1?&lt;/LI&gt;
&lt;LI&gt;Also, in your example, the expected output includes only a row from Table 1. Could you give an example where the output would include rows from Table 2 (to help clarify the logic)?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Fri, 20 Oct 2023 10:00:48 GMT</pubDate>
    <dc:creator>OwenAuger</dc:creator>
    <dc:date>2023-10-20T10:00:48Z</dc:date>
    <item>
      <title>Append two tables based on the conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Append-two-tables-based-on-the-conditions/m-p/3485442#M133365</link>
      <description>&lt;P&gt;Hi Everyone.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have two tables, and I need to append them based on a condition: where table 1 column 1 is not in table 2 column 2&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Table 1&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Column1 Column2&lt;/P&gt;&lt;P&gt;ABC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;ABC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;BR /&gt;BCA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;BR /&gt;CZA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Table 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Column1 Column2&lt;/P&gt;&lt;P&gt;ABC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;BR /&gt;BCA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;BR /&gt;ABC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Expected Output&lt;/STRONG&gt; (after appending both tables):&lt;/P&gt;&lt;P&gt;Column1 Column2&lt;/P&gt;&lt;P&gt;CZA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&lt;BR /&gt;&lt;BR /&gt;Please provide me with the Power Query steps to achieve this."&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 11:33:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Append-two-tables-based-on-the-conditions/m-p/3485442#M133365</guid>
      <dc:creator>Learner27</dc:creator>
      <dc:date>2023-10-19T11:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Append two tables based on the conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Append-two-tables-based-on-the-conditions/m-p/3487430#M133449</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="583663" data-lia-user-login="Learner27" class="lia-mention lia-mention-user"&gt;Learner27&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Could you clarify the logic?&lt;/LI&gt;
&lt;LI&gt;Should the condition be Table 1 Column 1 is not in Table 2 Column 1?&lt;/LI&gt;
&lt;LI&gt;Also, in your example, the expected output includes only a row from Table 1. Could you give an example where the output would include rows from Table 2 (to help clarify the logic)?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 10:00:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Append-two-tables-based-on-the-conditions/m-p/3487430#M133449</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2023-10-20T10:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Append two tables based on the conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Append-two-tables-based-on-the-conditions/m-p/3493523#M133805</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="583663" data-lia-user-login="Learner27" class="lia-mention lia-mention-user"&gt;Learner27&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you to try code as below in Power Query Editor.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Table.Combine({#"Table 1", #"Table 2"}),
    #"Filtered Rows" = 
    let 
    _Query = 
    Table.ToList( Table.SelectColumns(Table.NestedJoin(#"Table 1", {"Column1"}, #"Table 2", {"Column1"}, "Table 2", JoinKind.Inner),"Column1"),Combiner.CombineTextByDelimiter(","))
    in
    Table.SelectRows(Source, each not(List.Contains(_Query, [Column1])))
in
    #"Filtered Rows"&lt;/LI-CODE&gt;
&lt;P&gt;New Table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 09:58:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Append-two-tables-based-on-the-conditions/m-p/3493523#M133805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-24T09:58:34Z</dc:date>
    </item>
  </channel>
</rss>

