<?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: Contains check of two Columns in two tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Contains-check-of-two-Columns-in-two-tables/m-p/3071755#M106656</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="511460" data-lia-user-login="DONB87" class="lia-mention lia-mention-user"&gt;DONB87&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please refr to attached sample file with the solution.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Check = 
INT ( 
    NOT ISEMPTY ( 
        FILTER ( 
            Table2,
            CONTAINSSTRING ( Table2[PERNAME], Table1[Personname]  )
        )
    ) 
)&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 09 Feb 2023 11:43:20 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-02-09T11:43:20Z</dc:date>
    <item>
      <title>Contains check of two Columns in two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Contains-check-of-two-Columns-in-two-tables/m-p/3071468#M106633</link>
      <description>&lt;P&gt;Hii All&lt;/P&gt;&lt;P&gt;I have a probelm. I have to tables with two columns.&lt;/P&gt;&lt;P&gt;Table 1&lt;/P&gt;&lt;P&gt;Personname: Costumername&amp;nbsp; 1 ( Smith)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Costumername 2 ( Green)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Costumername 3 ( Summer)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2&lt;BR /&gt;PERNAME: Costumername 1 ( Jerry&amp;nbsp; Paul Clarkson)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Costumername 2 (Jenny Summer Smith)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Costumername 3 (Mr Clark&amp;nbsp; Paul Jackson)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i need is if there is a contain make = 1 and if not then 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried a lot of functions but nothing helped. In other words i need a contains function that are checking the table 1 colum with the table 2 column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and best wishes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Donb87&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 09:43:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Contains-check-of-two-Columns-in-two-tables/m-p/3071468#M106633</guid>
      <dc:creator>DONB87</dc:creator>
      <dc:date>2023-02-09T09:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Contains check of two Columns in two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Contains-check-of-two-Columns-in-two-tables/m-p/3071755#M106656</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="511460" data-lia-user-login="DONB87" class="lia-mention lia-mention-user"&gt;DONB87&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please refr to attached sample file with the solution.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Check = 
INT ( 
    NOT ISEMPTY ( 
        FILTER ( 
            Table2,
            CONTAINSSTRING ( Table2[PERNAME], Table1[Personname]  )
        )
    ) 
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 09 Feb 2023 11:43:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Contains-check-of-two-Columns-in-two-tables/m-p/3071755#M106656</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-09T11:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Contains check of two Columns in two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Contains-check-of-two-Columns-in-two-tables/m-p/3071827#M106664</link>
      <description>&lt;P&gt;HI&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;Can i implement this function in a custom column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Donb87&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 12:47:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Contains-check-of-two-Columns-in-two-tables/m-p/3071827#M106664</guid>
      <dc:creator>DONB87</dc:creator>
      <dc:date>2023-02-09T12:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Contains check of two Columns in two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Contains-check-of-two-Columns-in-two-tables/m-p/3071914#M106672</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="511460" data-lia-user-login="DONB87" class="lia-mention lia-mention-user"&gt;DONB87&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;= Table.AddColumn(#"Changed Type", "Custom", each if Text.Contains(Text.Combine(#"Table2"[PERNAME],","),[Personname]) then 1 else 0)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 09 Feb 2023 13:31:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Contains-check-of-two-Columns-in-two-tables/m-p/3071914#M106672</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-09T13:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Contains check of two Columns in two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Contains-check-of-two-Columns-in-two-tables/m-p/3071995#M106677</link>
      <description>&lt;P&gt;Hii&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;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i need is this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried your code but im getting only 0.&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;Thanks a lot for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BEst&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Donb87&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 13:55:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Contains-check-of-two-Columns-in-two-tables/m-p/3071995#M106677</guid>
      <dc:creator>DONB87</dc:creator>
      <dc:date>2023-02-09T13:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Contains check of two Columns in two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Contains-check-of-two-Columns-in-two-tables/m-p/3072131#M106682</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="511460" data-lia-user-login="DONB87" class="lia-mention lia-mention-user"&gt;DONB87&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Power Query is case sensetive. First capitalize both columns then add the custom column.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 14:33:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Contains-check-of-two-Columns-in-two-tables/m-p/3072131#M106682</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-09T14:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Contains check of two Columns in two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Contains-check-of-two-Columns-in-two-tables/m-p/3073711#M106786</link>
      <description>&lt;P&gt;Hii&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;/P&gt;&lt;P&gt;Unfortunatelly im getting only 0, because it compares the entire cell and not contains &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; Maybe other ideas, that can help my to resolve my probelm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Donb87&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 06:34:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Contains-check-of-two-Columns-in-two-tables/m-p/3073711#M106786</guid>
      <dc:creator>DONB87</dc:creator>
      <dc:date>2023-02-10T06:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Contains check of two Columns in two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Contains-check-of-two-Columns-in-two-tables/m-p/3073896#M106799</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="511460" data-lia-user-login="DONB87" class="lia-mention lia-mention-user"&gt;DONB87&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually no. Text.Contains compares contains not whole text. &lt;BR /&gt;Again, power query is case sensitive.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 07:59:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Contains-check-of-two-Columns-in-two-tables/m-p/3073896#M106799</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-10T07:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Contains check of two Columns in two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Contains-check-of-two-Columns-in-two-tables/m-p/3074442#M106835</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="511460" data-lia-user-login="DONB87" class="lia-mention lia-mention-user"&gt;DONB87&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please do Trim and Clean to Table1 column then use the following M code and refer to attached sample file for more details.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;= Table.AddColumn(#"Cleaned Text","Custom", each if Text.Contains(Text.Upper(Text.Combine(#"Table2"[PERNAME],",")),Text.Upper([Personname])) then 1 else 0)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 11:30:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Contains-check-of-two-Columns-in-two-tables/m-p/3074442#M106835</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-10T11:30:41Z</dc:date>
    </item>
  </channel>
</rss>

