<?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 based on Condition from Other Table Column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-based-on-Condition-from-Other-Table-Column/m-p/3039413#M104188</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="501887" data-lia-user-login="joshs444" class="lia-mention lia-mention-user"&gt;joshs444&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;If you only want to get the Load Names in the table '&lt;SPAN&gt;&lt;STRONG&gt;Container ETA&lt;/STRONG&gt;'&amp;nbsp;&lt;/SPAN&gt;which also exist in the table '&lt;SPAN&gt;&lt;STRONG&gt;Current Inventory&lt;/STRONG&gt;', you can create a&lt;STRONG&gt; calculated column&lt;/STRONG&gt; as below in the table&amp;nbsp;'Container ETA' to get it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
CALCULATE (
    MAX ( 'Current Inventory'[LOAD] ),
    FILTER (
        'Current Inventory',
        'Current Inventory'[LOAD] = EARLIER ( 'Container ETA'[Load Name] )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if you want to &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;remove&lt;/FONT&gt; &lt;/STRONG&gt;the rows in the table '&lt;SPAN&gt;&lt;STRONG&gt;Container ETA&lt;/STRONG&gt;' which exist the same Load Name with the LOAD in the table '&lt;STRONG&gt;Current Inventory&lt;/STRONG&gt;', you can follow the below steps to get it in Power Query Editor...&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("ldA7EsIwDATQu7jOTLSrT5wb0FBThByD+2NBkxQYp5LG8rMkb1t5mIeUqXAmZgq15bfnS4Rxb6lBkdXPnbJP/4ExgUo9guU3QIi14OcOPeAV18CKyMA4AO+AVZhvQ05L9EStkSd0GQRWLZeIhYMAwRyGtNEOCs8OdhhJ0QFOzQ8KfEfa3w==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Load Name" = _t, #"ETA to Port" = _t, Warehouse = _t, #"Weruva SKU" = _t, Quantity = _t, #"Delivery date to H&amp;amp;M" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Load Name", type text}, {"ETA to Port", type date}, {"Warehouse", type text}, {"Weruva SKU", Int64.Type}, {"Quantity", Int64.Type}, {"Delivery date to H&amp;amp;M", type text}}),
    #"Merged Queries" = Table.NestedJoin(#"Changed Type", {"Load Name"}, #"Current Inventory", {"LOAD"}, "Current Inventory", JoinKind.LeftOuter),
    #"Expanded Current Inventory" = Table.ExpandTableColumn(#"Merged Queries", "Current Inventory", {"LOAD"}, {"LOAD"}),
    #"Filtered Rows" = Table.SelectRows(#"Expanded Current Inventory", each ([LOAD] = null)),
    #"Removed Columns" = Table.RemoveColumns(#"Filtered Rows",{"LOAD"})
in
    #"Removed Columns"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2023 06:36:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-01-24T06:36:00Z</dc:date>
    <item>
      <title>Filter Table based on Condition from Other Table Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-based-on-Condition-from-Other-Table-Column/m-p/3035654#M103945</link>
      <description>&lt;P&gt;I have two tables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current Inventory:&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;Container ETA:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to filter out values in "Container ETA" that are the have the same "Load Name" as "Load" from "Current Inventory" table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if there is a load name in "Container ETA" that is also in "Current Inventory", I would like all rows removed from "Container ETA" with the that "Load" removed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not too farmiliar with FILTER functions, but it seems like this shouldnt be too difficult.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All help is appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2023 18:03:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-based-on-Condition-from-Other-Table-Column/m-p/3035654#M103945</guid>
      <dc:creator>joshs444</dc:creator>
      <dc:date>2023-01-21T18:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Table based on Condition from Other Table Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-based-on-Condition-from-Other-Table-Column/m-p/3035707#M103946</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="501887" data-lia-user-login="joshs444" class="lia-mention lia-mention-user"&gt;joshs444&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So would you like to have a new calculated table?&lt;/P&gt;
&lt;P&gt;Table =&lt;BR /&gt;VAR InventoryLoads =&lt;BR /&gt;VALUES ( 'Current Inventory'[Load] )&lt;BR /&gt;RETURN&lt;BR /&gt;FILTER ( 'Container ETA', NOT ( 'Container ETA'[Load Name] IN InventoryLoads ) )&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2023 19:04:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-based-on-Condition-from-Other-Table-Column/m-p/3035707#M103946</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-01-21T19:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Table based on Condition from Other Table Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-based-on-Condition-from-Other-Table-Column/m-p/3036329#M103989</link>
      <description>&lt;P&gt;Ideally I would filter the initial Container ETAs table, but if that doesnt work then this is a great solution.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2023 17:41:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-based-on-Condition-from-Other-Table-Column/m-p/3036329#M103989</guid>
      <dc:creator>joshs444</dc:creator>
      <dc:date>2023-01-22T17:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Table based on Condition from Other Table Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-based-on-Condition-from-Other-Table-Column/m-p/3036336#M103990</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="501887" data-lia-user-login="joshs444" class="lia-mention lia-mention-user"&gt;joshs444&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You can place the following measure in the filter pane of the visual and select "is not blank" then apply the filter&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;FilterMeasure =
VAR InventoryLoads =
    VALUES ( 'Current Inventory'[Load] )
RETURN
    COUNTROWS (
        FILTER ( 'Container ETA', NOT ( 'Container ETA'[Load Name] IN InventoryLoads ) )
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 22 Jan 2023 17:58:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-based-on-Condition-from-Other-Table-Column/m-p/3036336#M103990</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-01-22T17:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Table based on Condition from Other Table Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-based-on-Condition-from-Other-Table-Column/m-p/3039413#M104188</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="501887" data-lia-user-login="joshs444" class="lia-mention lia-mention-user"&gt;joshs444&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;If you only want to get the Load Names in the table '&lt;SPAN&gt;&lt;STRONG&gt;Container ETA&lt;/STRONG&gt;'&amp;nbsp;&lt;/SPAN&gt;which also exist in the table '&lt;SPAN&gt;&lt;STRONG&gt;Current Inventory&lt;/STRONG&gt;', you can create a&lt;STRONG&gt; calculated column&lt;/STRONG&gt; as below in the table&amp;nbsp;'Container ETA' to get it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
CALCULATE (
    MAX ( 'Current Inventory'[LOAD] ),
    FILTER (
        'Current Inventory',
        'Current Inventory'[LOAD] = EARLIER ( 'Container ETA'[Load Name] )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if you want to &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;remove&lt;/FONT&gt; &lt;/STRONG&gt;the rows in the table '&lt;SPAN&gt;&lt;STRONG&gt;Container ETA&lt;/STRONG&gt;' which exist the same Load Name with the LOAD in the table '&lt;STRONG&gt;Current Inventory&lt;/STRONG&gt;', you can follow the below steps to get it in Power Query Editor...&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("ldA7EsIwDATQu7jOTLSrT5wb0FBThByD+2NBkxQYp5LG8rMkb1t5mIeUqXAmZgq15bfnS4Rxb6lBkdXPnbJP/4ExgUo9guU3QIi14OcOPeAV18CKyMA4AO+AVZhvQ05L9EStkSd0GQRWLZeIhYMAwRyGtNEOCs8OdhhJ0QFOzQ8KfEfa3w==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Load Name" = _t, #"ETA to Port" = _t, Warehouse = _t, #"Weruva SKU" = _t, Quantity = _t, #"Delivery date to H&amp;amp;M" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Load Name", type text}, {"ETA to Port", type date}, {"Warehouse", type text}, {"Weruva SKU", Int64.Type}, {"Quantity", Int64.Type}, {"Delivery date to H&amp;amp;M", type text}}),
    #"Merged Queries" = Table.NestedJoin(#"Changed Type", {"Load Name"}, #"Current Inventory", {"LOAD"}, "Current Inventory", JoinKind.LeftOuter),
    #"Expanded Current Inventory" = Table.ExpandTableColumn(#"Merged Queries", "Current Inventory", {"LOAD"}, {"LOAD"}),
    #"Filtered Rows" = Table.SelectRows(#"Expanded Current Inventory", each ([LOAD] = null)),
    #"Removed Columns" = Table.RemoveColumns(#"Filtered Rows",{"LOAD"})
in
    #"Removed Columns"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 06:36:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-based-on-Condition-from-Other-Table-Column/m-p/3039413#M104188</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-24T06:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Table based on Condition from Other Table Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-based-on-Condition-from-Other-Table-Column/m-p/3040246#M104241</link>
      <description>&lt;P&gt;This seems like the best solution. Create a calculated column and then sort in power query to remove values in both tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 13:01:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Table-based-on-Condition-from-Other-Table-Column/m-p/3040246#M104241</guid>
      <dc:creator>joshs444</dc:creator>
      <dc:date>2023-01-24T13:01:02Z</dc:date>
    </item>
  </channel>
</rss>

