<?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: Visual Filter using a a value from a column after looking up another table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visual-Filter-using-a-a-value-from-a-column-after-looking-up/m-p/3085805#M107845</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="439059" data-lia-user-login="fraserward" class="lia-mention lia-mention-user"&gt;fraserward&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to add a calculated table like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CalculatedTable = 
VAR _reflist =
FILTER(
    VALUES(Table1[REF]),
    CONTAINS(Table2, Table2[REF], Table1[REF])
)
VAR _sortlist =
CALCULATETABLE(
    VALUES(Table1[Sort]),
    Table1[REF] IN _reflist
)
RETURN
CALCULATETABLE(
    Table1, 
    Table1[Sort] IN _sortlist
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it worked like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2023 23:47:04 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2023-02-17T23:47:04Z</dc:date>
    <item>
      <title>Visual Filter using a a value from a column after looking up another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visual-Filter-using-a-a-value-from-a-column-after-looking-up/m-p/3085668#M107832</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need some dax that I can use as a visual filter to filter out rows based on this logic.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;&lt;P&gt;I want to filter Table 1 rows, If the record exists in Table 1 and Table 2 then filter out all rows from Table 1 with the same Table1 Sort value.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at the Ref column in both tables we can see A1001 exists in both tables.&amp;nbsp; From here I need to find the value in the Sort Column for Ref A1001 and whatever that value is, filter all rows with that value.&amp;nbsp; In this case that is value 1, removing 3 rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 20:17:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visual-Filter-using-a-a-value-from-a-column-after-looking-up/m-p/3085668#M107832</guid>
      <dc:creator>fraserward</dc:creator>
      <dc:date>2023-02-17T20:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Filter using a a value from a column after looking up another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visual-Filter-using-a-a-value-from-a-column-after-looking-up/m-p/3085805#M107845</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="439059" data-lia-user-login="fraserward" class="lia-mention lia-mention-user"&gt;fraserward&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to add a calculated table like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CalculatedTable = 
VAR _reflist =
FILTER(
    VALUES(Table1[REF]),
    CONTAINS(Table2, Table2[REF], Table1[REF])
)
VAR _sortlist =
CALCULATETABLE(
    VALUES(Table1[Sort]),
    Table1[REF] IN _reflist
)
RETURN
CALCULATETABLE(
    Table1, 
    Table1[Sort] IN _sortlist
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it worked like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 23:47:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visual-Filter-using-a-a-value-from-a-column-after-looking-up/m-p/3085805#M107845</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-17T23:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Filter using a a value from a column after looking up another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visual-Filter-using-a-a-value-from-a-column-after-looking-up/m-p/3085811#M107846</link>
      <description>&lt;P&gt;or your write a Tag column and use the Tag column to filter table1, like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Tag = 
VAR _reflist =
FILTER(
    VALUES(Table1[REF]),
    CONTAINS(Table2, Table2[REF], Table1[REF])
)
VAR _sortlist =
CALCULATETABLE(
    VALUES(Table1[Sort]),
    ALL(table1),
    Table1[REF] IN _reflist
)
RETURN
IF(
    [Sort] IN _sortlist,
    "Yes", "No"
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 23:57:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visual-Filter-using-a-a-value-from-a-column-after-looking-up/m-p/3085811#M107846</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-17T23:57:31Z</dc:date>
    </item>
  </channel>
</rss>

