<?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 multiple substring DAX CONTAINSSTRING in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/2563658#M73002</link>
    <description>&lt;P&gt;Brilliant scaleable solution. This way you only need to edit your keyword list and it will automatically update.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jun 2022 10:50:17 GMT</pubDate>
    <dc:creator>rusgesig</dc:creator>
    <dc:date>2022-06-07T10:50:17Z</dc:date>
    <item>
      <title>Find multiple substring DAX CONTAINSSTRING</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/2359363#M60225</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to find if the substrings "house", "home", "dewelling" appear in a long string column. Using&amp;nbsp;&lt;SPAN&gt;CONTAINSSTRING I am able to find each word at a time-&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;house= CONTAINSSTRING(table1[column1], "house"). Is there a way to look for more than one substring? Perhaps something like&amp;nbsp;&lt;SPAN&gt;house= CONTAINSSTRING(table1[column1], "house" or "home" or "dewelling").&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thank you for any help!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 17:03:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/2359363#M60225</guid>
      <dc:creator>maalsan</dc:creator>
      <dc:date>2022-02-24T17:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Find multiple substring DAX CONTAINSSTRING</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/2359394#M60227</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="362136" data-lia-user-login="maalsan" class="lia-mention lia-mention-user"&gt;maalsan&lt;/a&gt;&amp;nbsp;Try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;house = 
  IF(
    CONTAINSSTRING(table1[column1], "house") ||
    CONTAINSSTRING(table1[column1], "home") ||
    CONTAINSSTRING(table1[column1], "dwelling"),
    TRUE(),
    FALSE()
  )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 24 Feb 2022 17:17:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/2359394#M60227</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-02-24T17:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Find multiple substring DAX CONTAINSSTRING</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/2359524#M60239</link>
      <description>&lt;P&gt;Thanks for the reply. However, it seems that containsstring function only allowes for 2 arguments max. I got the following error message: "Too many arguments were passed to the CONTAINSSTRING function. The maximum argument count for the function is 2".&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 19:28:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/2359524#M60239</guid>
      <dc:creator>maalsan</dc:creator>
      <dc:date>2022-02-24T19:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Find multiple substring DAX CONTAINSSTRING</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/2359850#M60265</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="362136" data-lia-user-login="maalsan" class="lia-mention lia-mention-user"&gt;maalsan&lt;/a&gt;&amp;nbsp;This worked for me:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 22:59:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/2359850#M60265</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-02-24T22:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Find multiple substring DAX CONTAINSSTRING</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/2360285#M60294</link>
      <description>&lt;P&gt;Hi maalsan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assuming that you have table called "String" where Description is your column header; You have another table called Keyword, that contains a column header Keyword.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;You can load both the tables to PowerBI and then for the String Table, you can create a calculated column as below:&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;Is this providing a solution for your query? If "yes" kindly confirm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Request other experienced users to add value to my suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C.S.N. Raja&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 05:24:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/2360285#M60294</guid>
      <dc:creator>RajaCSN</dc:creator>
      <dc:date>2022-02-25T05:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Find multiple substring DAX CONTAINSSTRING</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/2361288#M60359</link>
      <description>&lt;P&gt;That's weird. It still gives me an error message.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the solution to be simply:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;house= CONTAINSSTRING(table1[column1], "house"&amp;nbsp;) ||&amp;nbsp;CONTAINSSTRING(table1[column1], "home"&amp;nbsp;) ||&amp;nbsp;CONTAINSSTRING(table1[column1], "dewelling"&amp;nbsp;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Without the need of IF statements.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 13:53:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/2361288#M60359</guid>
      <dc:creator>maalsan</dc:creator>
      <dc:date>2022-02-25T13:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Find multiple substring DAX CONTAINSSTRING</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/2563658#M73002</link>
      <description>&lt;P&gt;Brilliant scaleable solution. This way you only need to edit your keyword list and it will automatically update.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 10:50:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/2563658#M73002</guid>
      <dc:creator>rusgesig</dc:creator>
      <dc:date>2022-06-07T10:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Find multiple substring DAX CONTAINSSTRING</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/2967374#M99079</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240084" data-lia-user-login="RajaCSN" class="lia-mention lia-mention-user"&gt;RajaCSN&lt;/a&gt;,&lt;BR /&gt;I found your solution very helful, honestly speaking it's mindblowing!&lt;BR /&gt;Trying to adjust it to my needs, if I put Keyword column in a slicer giving user option to select one or multiple values. How to adjust DAX so it's still working?&lt;BR /&gt;Curent solution is taking all values no meter what is selected in slicer.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 08:08:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/2967374#M99079</guid>
      <dc:creator>Piotrrekk</dc:creator>
      <dc:date>2022-12-14T08:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Find multiple substring DAX CONTAINSSTRING</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/2971372#M99316</link>
      <description>&lt;P&gt;Yes, that is a limitation. Let me check if your requirement can be done by me or else we can seek assistance from other experienced users in this community.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 16:28:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/2971372#M99316</guid>
      <dc:creator>RajaCSN</dc:creator>
      <dc:date>2022-12-15T16:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Find multiple substring DAX CONTAINSSTRING</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/2990281#M100585</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240084" data-lia-user-login="RajaCSN" class="lia-mention lia-mention-user"&gt;RajaCSN&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Initialy it sould like simple request, but so many colequest I reached were not able to assist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 14:18:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/2990281#M100585</guid>
      <dc:creator>Piotrrekk</dc:creator>
      <dc:date>2022-12-27T14:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Find multiple substring DAX CONTAINSSTRING</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/3135689#M111745</link>
      <description>&lt;P&gt;Awesome.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 09:28:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/3135689#M111745</guid>
      <dc:creator>nirun00s</dc:creator>
      <dc:date>2023-03-16T09:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Find multiple substring DAX CONTAINSSTRING</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/3185931#M115333</link>
      <description>&lt;P&gt;Hi Raja, im fascinated by your solution. Nevertheless I cant recreate it for myself.&lt;BR /&gt;The Search Process works fine, but my Result (when found) gives always ALL values from the Keyword list back.&lt;/P&gt;&lt;P&gt;The rootcause seems to be the "ResultwhenTrue" of the If statement.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt; My Colleague found the problem. You cant have a active relation between the two tables. -.-&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 15:48:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/3185931#M115333</guid>
      <dc:creator>Alexandernoclue</dc:creator>
      <dc:date>2023-04-19T15:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Find multiple substring DAX CONTAINSSTRING</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/3447482#M131222</link>
      <description>&lt;P&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 09:35:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/3447482#M131222</guid>
      <dc:creator>ACZ</dc:creator>
      <dc:date>2023-09-26T09:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Find multiple substring DAX CONTAINSSTRING</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/3905010#M152140</link>
      <description>&lt;P&gt;This is a great solution that works fine, however, I struggle to wrap my head around what exactly going on in here.&lt;BR /&gt;&lt;BR /&gt;The part where I'm stuck is the FIRSTNONBLANK () function, and how it manages to "loop through" the column of keywords. When I isolate the expression FIRSTNONBLANK(Table[Column],1) it just returns the first line of the column, but in this solution it obviously checks against all values in the column&lt;BR /&gt;&lt;BR /&gt;If you could explain in plain English, that would be hugely appreciated,&lt;BR /&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 10:29:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/3905010#M152140</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-09T10:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Find multiple substring DAX CONTAINSSTRING</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/4619095#M176780</link>
      <description>&lt;P&gt;For anyone on this forum, Copilot gave me this solution which works quite well:&lt;BR /&gt;&lt;BR /&gt;ContainsAnyValue =&lt;BR /&gt;VAR StringList = {"Value1", "Value2", "Value3"} -- Step 1: Define the list of string values&lt;BR /&gt;RETURN&lt;BR /&gt;IF (&lt;BR /&gt;COUNTROWS (&lt;BR /&gt;FILTER (&lt;BR /&gt;StringList,&lt;BR /&gt;CONTAINSSTRING ( [YourColumnName], [Value] )&lt;BR /&gt;)&lt;BR /&gt;) &amp;gt; 0,&lt;BR /&gt;TRUE(),&lt;BR /&gt;FALSE()&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 04:14:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-multiple-substring-DAX-CONTAINSSTRING/m-p/4619095#M176780</guid>
      <dc:creator>diegovelez</dc:creator>
      <dc:date>2025-03-21T04:14:57Z</dc:date>
    </item>
  </channel>
</rss>

