<?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: DAX Search for exact match within a string of text in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Search-for-exact-match-within-a-string-of-text/m-p/4067379#M161470</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2024 15:42:45 GMT</pubDate>
    <dc:creator>_Kelz0484</dc:creator>
    <dc:date>2024-07-29T15:42:45Z</dc:date>
    <item>
      <title>DAX Search for exact match within a string of text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Search-for-exact-match-within-a-string-of-text/m-p/4067273#M161461</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 columns within the same table and I trying to find a DAX function that uses the value of 1 column to search the other to see if it contains the 1st as an exact match.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column 1 contains a list of fitting numbers.&lt;/P&gt;&lt;P&gt;Column 2 contains a description of the fitting and in some cases the fitting number as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The issue I am having is that the fitting numbers are in groups ie. MW, MW1, MW2 etc etc. I have used EXACT and CONTAINSSTRING but because it finds the MW in multiple instances it tells me there is a match. I only want it to match if complete fitting number is in the description Column.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 14:40:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Search-for-exact-match-within-a-string-of-text/m-p/4067273#M161461</guid>
      <dc:creator>_Kelz0484</dc:creator>
      <dc:date>2024-07-29T14:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Search for exact match within a string of text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Search-for-exact-match-within-a-string-of-text/m-p/4067327#M161466</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="782399" data-lia-user-login="_Kelz0484" class="lia-mention lia-mention-user"&gt;_Kelz0484&lt;/a&gt;&amp;nbsp;Can you provide some sample data posted as text to test with?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 15:24:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Search-for-exact-match-within-a-string-of-text/m-p/4067327#M161466</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-07-29T15:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Search for exact match within a string of text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Search-for-exact-match-within-a-string-of-text/m-p/4067379#M161470</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 15:42:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Search-for-exact-match-within-a-string-of-text/m-p/4067379#M161470</guid>
      <dc:creator>_Kelz0484</dc:creator>
      <dc:date>2024-07-29T15:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Search for exact match within a string of text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Search-for-exact-match-within-a-string-of-text/m-p/4067624#M161481</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="782399" data-lia-user-login="_Kelz0484" class="lia-mention lia-mention-user"&gt;_Kelz0484&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would a column llike this help?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Result = 
    IF(
        LEN( [Fitting No] ) = 0,
        "Mismatch",
        IF(
            CONTAINSSTRINGEXACT(
                [Description],
                [Fitting No]
            ),
            "Exact Match",
            "Mismatch"
        )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://1drv.ms/u/s!AnF6rI36HAVkhYhVaZQ71zb-UHvoBQ?e=6hekWi" target="_blank"&gt;_Kelz0484.pbix&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 18:55:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Search-for-exact-match-within-a-string-of-text/m-p/4067624#M161481</guid>
      <dc:creator>gmsamborn</dc:creator>
      <dc:date>2024-07-29T18:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Search for exact match within a string of text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Search-for-exact-match-within-a-string-of-text/m-p/4068525#M161517</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="782399" data-lia-user-login="_Kelz0484" class="lia-mention lia-mention-user"&gt;_Kelz0484&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try this m code:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let a = List.Contains(Text.Split([Description]," "),[Fitting No])
in if a = true then "Exact Match" else "Mismatch"&lt;/LI-CODE&gt;
&lt;P&gt;You can add a custom column in power query:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then paste the code in it:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;The result is as follow:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Zhengdong Xu&lt;BR /&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 07:18:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Search-for-exact-match-within-a-string-of-text/m-p/4068525#M161517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-30T07:18:27Z</dc:date>
    </item>
  </channel>
</rss>

