<?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: Doing a search against multiple strings in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Doing-a-search-against-multiple-strings/m-p/2481398#M67928</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;thanks, this is brilliant.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea why "?" or "/?" is not working for my "text2" while if I use any other combination of characters, it works? No big deal (I created a workaround) but just curious.&lt;BR /&gt;&lt;BR /&gt;Kind regatds &amp;amp; thanks again,&lt;BR /&gt;(Worst)Kees&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2022 19:50:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-04-27T19:50:40Z</dc:date>
    <item>
      <title>Doing a search against multiple strings</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Doing-a-search-against-multiple-strings/m-p/2480542#M67868</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The below should be relatively easy to fix in DAX but somehow I do not succeed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For simplicity sake here is a dummy fact table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;ID&lt;/P&gt;&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&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;7&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Text 18&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Other&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to get a new (calculated) column that checks in the following order:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is “text2” and “text4” part of the content column? If so the new column should show “2plus4”&lt;/LI&gt;&lt;LI&gt;Is “text1” and “text5” part of the content column? If so the new column should show “1plus5”&lt;/LI&gt;&lt;LI&gt;Is there another column that contains “text2? If so the new column should “Text2”&lt;/LI&gt;&lt;LI&gt;In all other cases the new column should show “Other”&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help is appreciated,&lt;/P&gt;&lt;P&gt;(Worst)Kees&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 13:03:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Doing-a-search-against-multiple-strings/m-p/2480542#M67868</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-27T13:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Doing a search against multiple strings</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Doing-a-search-against-multiple-strings/m-p/2481038#M67901</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , A new column like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Switch( True() ,&lt;BR /&gt;containsstring([Content],"text2") &amp;amp;&amp;amp; containsstring([Content],"text2") , "2plus4",&lt;BR /&gt;containsstring([Content],"text1") &amp;amp;&amp;amp; containsstring([Content],"text5") , "1plus5",&lt;BR /&gt;containsstring([Content],"text2"), "text2",&lt;BR /&gt;"Other")&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 16:26:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Doing-a-search-against-multiple-strings/m-p/2481038#M67901</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-04-27T16:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Doing a search against multiple strings</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Doing-a-search-against-multiple-strings/m-p/2481398#M67928</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;thanks, this is brilliant.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea why "?" or "/?" is not working for my "text2" while if I use any other combination of characters, it works? No big deal (I created a workaround) but just curious.&lt;BR /&gt;&lt;BR /&gt;Kind regatds &amp;amp; thanks again,&lt;BR /&gt;(Worst)Kees&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 19:50:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Doing-a-search-against-multiple-strings/m-p/2481398#M67928</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-27T19:50:40Z</dc:date>
    </item>
  </channel>
</rss>

