<?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 How to filter results for one table by column in another table? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-results-for-one-table-by-column-in-another-table/m-p/2851936#M91458</link>
    <description>&lt;P&gt;I have a table that contains a customer_id column which a few thousand entries.&amp;nbsp; I have another table that lists a customer_id column of "bad" ID's that I want to filter OUT OF the first table.&amp;nbsp; The end result would be the first table minus any rows of the "bad" customer_id listed in the second table.&amp;nbsp; Help?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2022 18:09:35 GMT</pubDate>
    <dc:creator>rsderby68</dc:creator>
    <dc:date>2022-10-19T18:09:35Z</dc:date>
    <item>
      <title>How to filter results for one table by column in another table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-results-for-one-table-by-column-in-another-table/m-p/2851936#M91458</link>
      <description>&lt;P&gt;I have a table that contains a customer_id column which a few thousand entries.&amp;nbsp; I have another table that lists a customer_id column of "bad" ID's that I want to filter OUT OF the first table.&amp;nbsp; The end result would be the first table minus any rows of the "bad" customer_id listed in the second table.&amp;nbsp; Help?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 18:09:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-results-for-one-table-by-column-in-another-table/m-p/2851936#M91458</guid>
      <dc:creator>rsderby68</dc:creator>
      <dc:date>2022-10-19T18:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter results for one table by column in another table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-results-for-one-table-by-column-in-another-table/m-p/2851993#M91464</link>
      <description>&lt;P&gt;There are likely several ways to do this. I would approach it by adding a calculated column to your first table which tests whether the customer_id is within the second table's list:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Good IDs = IF(Table1[customer_id] in VALUES(Table2[bad_ids]), True, False)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;You can edit the True and False outputs to be anything you'd like, and slice by "True" to see only those customers without bad IDs.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 20:05:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-results-for-one-table-by-column-in-another-table/m-p/2851993#M91464</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-19T20:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter results for one table by column in another table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-results-for-one-table-by-column-in-another-table/m-p/2852037#M91470</link>
      <description>&lt;P&gt;I actually got it to work using a version of:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FILTER ( Table1, NOT Table1[Id] IN DISTINCT ( Table2[Id] ) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's amazing how much you can learn at Power BI when you are dealing with a crappy data source!&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; Thanks All!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 19:34:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-results-for-one-table-by-column-in-another-table/m-p/2852037#M91470</guid>
      <dc:creator>rsderby68</dc:creator>
      <dc:date>2022-10-19T19:34:31Z</dc:date>
    </item>
  </channel>
</rss>

