<?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: Filter table rows based on condition in other table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-rows-based-on-condition-in-other-table/m-p/2598123#M75027</link>
    <description>&lt;P&gt;thank you amit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my requirement was row list, I made little changes in measure expression it worked&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;measure:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF6600"&gt;calculate(countrows&lt;/FONT&gt;(Table), filter(table1, containsstring(table1[Column3], "EFG")),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;filter(Table2, not(containsstring(table2[Column3], "XYZ")) &amp;amp;&amp;amp; not(containsstring(table2[Column3], "ABC"))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF6600"&gt;CALCULATETABLE&lt;/FONT&gt;((Table), filter(table1, containsstring(table1[Column3], "EFG")),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;filter(Table2, not(containsstring(table2[Column3], "XYZ")) &amp;amp;&amp;amp; not(containsstring(table2[Column3], "ABC"))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2022 14:52:18 GMT</pubDate>
    <dc:creator>atiftanveer</dc:creator>
    <dc:date>2022-06-23T14:52:18Z</dc:date>
    <item>
      <title>Filter table rows based on condition in other table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-rows-based-on-condition-in-other-table/m-p/2595066#M74879</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How to Write&amp;nbsp; DAX for following SQL example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Select Column1, Column2, Column3&lt;/P&gt;&lt;P&gt;from Table1 T1&lt;/P&gt;&lt;P&gt;Inner Join (&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;Select Column2 from Table2&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;Where Column3 Not Like '%ABC%'&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;And Column3 Not Like '%XYZ%'&lt;/P&gt;&lt;P&gt;) T2&lt;/P&gt;&lt;P&gt;ON T1.Column1 = T2.Column 1&lt;/P&gt;&lt;P&gt;Where T1.Column3 = '%EFG%'&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 13:19:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-rows-based-on-condition-in-other-table/m-p/2595066#M74879</guid>
      <dc:creator>atiftanveer</dc:creator>
      <dc:date>2022-06-22T13:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Filter table rows based on condition in other table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-rows-based-on-condition-in-other-table/m-p/2596679#M74958</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="403317" data-lia-user-login="atiftanveer" class="lia-mention lia-mention-user"&gt;atiftanveer&lt;/a&gt; , Assume Table 1 and Table 2 are joined on the required column. You can use this measure with Column1, column 2, and Column 3 from table1 in a visual &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;calculate(countrows(Table), filter(table1, containsstring(table1[Column3], "EFG")), &lt;BR /&gt;filter(Table2, not(containsstring(table2[Column3], "XYZ")) &amp;amp;&amp;amp; not(containsstring(table2[Column3], "ABC"))))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, refer&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/" target="_blank"&gt;https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 07:09:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-rows-based-on-condition-in-other-table/m-p/2596679#M74958</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-06-23T07:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Filter table rows based on condition in other table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-rows-based-on-condition-in-other-table/m-p/2598123#M75027</link>
      <description>&lt;P&gt;thank you amit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my requirement was row list, I made little changes in measure expression it worked&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;measure:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF6600"&gt;calculate(countrows&lt;/FONT&gt;(Table), filter(table1, containsstring(table1[Column3], "EFG")),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;filter(Table2, not(containsstring(table2[Column3], "XYZ")) &amp;amp;&amp;amp; not(containsstring(table2[Column3], "ABC"))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF6600"&gt;CALCULATETABLE&lt;/FONT&gt;((Table), filter(table1, containsstring(table1[Column3], "EFG")),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;filter(Table2, not(containsstring(table2[Column3], "XYZ")) &amp;amp;&amp;amp; not(containsstring(table2[Column3], "ABC"))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 14:52:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-rows-based-on-condition-in-other-table/m-p/2598123#M75027</guid>
      <dc:creator>atiftanveer</dc:creator>
      <dc:date>2022-06-23T14:52:18Z</dc:date>
    </item>
  </channel>
</rss>

