<?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: Find columns from one table in another table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-columns-from-one-table-in-another-table/m-p/2578747#M73929</link>
    <description>&lt;P&gt;Thanks for your help&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;, it seems OK in my real PBIx, by some reason in the PBI POC i created, with the 2 tables directly created in PBI, i was getting that message error.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 23:08:35 GMT</pubDate>
    <dc:creator>Ricardo77</dc:creator>
    <dc:date>2022-06-14T23:08:35Z</dc:date>
    <item>
      <title>Find columns from one table in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-columns-from-one-table-in-another-table/m-p/2577806#M73865</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i'm trying to find columns of 1 table on a 2nd table, but i'm struggling because i can't seem to use distinct or values with text operators (2nd column can be slightly different, as you'll see), and i also was trying to use addcolumns and summarize in a variable but i don't know how to use it after on the Calculate's Filter.&lt;BR /&gt;&lt;BR /&gt;So what i pretend is to count table1\column1 in table2\column1, the detail is that :&lt;/P&gt;&lt;P&gt;- it could not exist, as AA-00004&lt;/P&gt;&lt;P&gt;- it can exist exactly equal or with a variation on the string (AA-00001 with&amp;nbsp;AA-00001 and&amp;nbsp;AA-00001--1)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;What's the best / correct way to do this?&lt;BR /&gt;Thanks in advance&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Jun 2022 13:40:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-columns-from-one-table-in-another-table/m-p/2577806#M73865</guid>
      <dc:creator>Ricardo77</dc:creator>
      <dc:date>2022-06-14T13:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Find columns from one table in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-columns-from-one-table-in-another-table/m-p/2578313#M73893</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="208670" data-lia-user-login="Ricardo77" class="lia-mention lia-mention-user"&gt;Ricardo77&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;=
SUMX (
    VALUES ( table2[Column1] ),
    SUMX (
        VALUES ( table1[Column1] ),
        IF ( CONTAINSSTRING ( table2[Column1], table1[Column1] ), 1 )
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 17:28:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-columns-from-one-table-in-another-table/m-p/2578313#M73893</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-14T17:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Find columns from one table in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-columns-from-one-table-in-another-table/m-p/2578341#M73897</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp; , thanks for your help.&lt;BR /&gt;&lt;BR /&gt;I think it's working but just failing in one detail: i need it to count on table1, so when values are found they just are counted once , as AA-00001 and AA-00005 .&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 17:42:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-columns-from-one-table-in-another-table/m-p/2578341#M73897</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-14T17:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Find columns from one table in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-columns-from-one-table-in-another-table/m-p/2578391#M73902</link>
      <description>&lt;P&gt;Please clarify further&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 18:05:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-columns-from-one-table-in-another-table/m-p/2578391#M73902</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-14T18:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Find columns from one table in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-columns-from-one-table-in-another-table/m-p/2578405#M73903</link>
      <description>&lt;P&gt;If you look to the codes in my example image it should return total of 4 from 1st table, as they are appearing 7 times, including variations, on 2nd table (forgot to place AA-00005 in blue, also).&lt;BR /&gt;&lt;BR /&gt;So each entry that appears 1 or more times in 2nd table should should just count as 1.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 18:13:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-columns-from-one-table-in-another-table/m-p/2578405#M73903</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-14T18:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Find columns from one table in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-columns-from-one-table-in-another-table/m-p/2578447#M73907</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;=
SUMX (
    VALUES ( table1[Column1] ),
    IF (
        SUMX (
            VALUES ( table2[Column1] ),
            IF ( CONTAINSSTRING ( table2[Column1], table1[Column1] ), 1 )
        ) &amp;gt; 0,
        1
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 18:43:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-columns-from-one-table-in-another-table/m-p/2578447#M73907</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-14T18:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Find columns from one table in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-columns-from-one-table-in-another-table/m-p/2578466#M73909</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;i was trying now to do something more similar to you, as the idea is just to count once, but:&lt;BR /&gt;1) shouldn't the 1st SUMX be done over Table1, as we want to count from there?&lt;BR /&gt;&lt;BR /&gt;2) can't i simply create a measure with the code you kindly shared and drag it to the screen? An error is appearing.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks and Regards&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 18:50:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-columns-from-one-table-in-another-table/m-p/2578466#M73909</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-14T18:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Find columns from one table in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-columns-from-one-table-in-another-table/m-p/2578481#M73912</link>
      <description>&lt;P&gt;The first Values is table1 the 2nd values is table2. Please copy the same code in my last reply&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 19:06:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-columns-from-one-table-in-another-table/m-p/2578481#M73912</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-14T19:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Find columns from one table in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-columns-from-one-table-in-another-table/m-p/2578529#M73916</link>
      <description>&lt;P&gt;i was trying now to do something more similar to you, as the idea is just to count once, but:&lt;BR /&gt;1) shouldn't the 1st SUMX be done over Table1, as we want to count from there?&lt;BR /&gt;&lt;BR /&gt;2) can't i simply create a measure with the code you kindly shared and drag it to the screen? An error is appearing.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks and Regards&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 19:49:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-columns-from-one-table-in-another-table/m-p/2578529#M73916</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-14T19:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Find columns from one table in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-columns-from-one-table-in-another-table/m-p/2578747#M73929</link>
      <description>&lt;P&gt;Thanks for your help&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;, it seems OK in my real PBIx, by some reason in the PBI POC i created, with the 2 tables directly created in PBI, i was getting that message error.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 23:08:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-columns-from-one-table-in-another-table/m-p/2578747#M73929</guid>
      <dc:creator>Ricardo77</dc:creator>
      <dc:date>2022-06-14T23:08:35Z</dc:date>
    </item>
  </channel>
</rss>

