<?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: How to use CONTAINSTRING inside SWITCH? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-CONTAINSTRING-inside-SWITCH/m-p/2801431#M88154</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="443533" data-lia-user-login="matheus_peppers" class="lia-mention lia-mention-user"&gt;matheus_peppers&lt;/a&gt; , You should use Switch (True(), &lt;/P&gt;
&lt;P&gt;and then you can check for true in each expression&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Switch-Case statement of #PowerBI: &lt;A href="https://www.youtube.com/watch?v=gelJWktlR80&amp;amp;list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&amp;amp;index=56" target="_blank"&gt;https://www.youtube.com/watch?v=gelJWktlR80&amp;amp;list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&amp;amp;index=56&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2022 02:02:54 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-09-28T02:02:54Z</dc:date>
    <item>
      <title>How to use CONTAINSTRING inside SWITCH?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-CONTAINSTRING-inside-SWITCH/m-p/2800572#M88102</link>
      <description>&lt;P&gt;Hello everybody, how are you?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need your help urgently for a problem I'm having.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a column with different values, but with a specific string that repeats in more than one row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do I need to do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to categorize these specific strings into 3 different categories, which are the regions that each location equals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use SWITCH with CONTAINSSTRING, because I need it to return the text I want in the calculated column if it finds the text I am looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it is not working. Can anyone help me and tell me where I am going wrong, or any alternative way for me to get what I want?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 17:19:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-CONTAINSTRING-inside-SWITCH/m-p/2800572#M88102</guid>
      <dc:creator>matheus_peppers</dc:creator>
      <dc:date>2022-09-27T17:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to use CONTAINSTRING inside SWITCH?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-CONTAINSTRING-inside-SWITCH/m-p/2801431#M88154</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="443533" data-lia-user-login="matheus_peppers" class="lia-mention lia-mention-user"&gt;matheus_peppers&lt;/a&gt; , You should use Switch (True(), &lt;/P&gt;
&lt;P&gt;and then you can check for true in each expression&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Switch-Case statement of #PowerBI: &lt;A href="https://www.youtube.com/watch?v=gelJWktlR80&amp;amp;list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&amp;amp;index=56" target="_blank"&gt;https://www.youtube.com/watch?v=gelJWktlR80&amp;amp;list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&amp;amp;index=56&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 02:02:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-CONTAINSTRING-inside-SWITCH/m-p/2801431#M88154</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-09-28T02:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to use CONTAINSTRING inside SWITCH?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-CONTAINSTRING-inside-SWITCH/m-p/2801704#M88171</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="443533" data-lia-user-login="matheus_peppers" class="lia-mention lia-mention-user"&gt;matheus_peppers&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create calculated column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column =
SWITCH(
    TRUE(),
CONTAINSSTRING('Table'[Anuncio],"Taubate")=TRUE(),"Taubate",
CONTAINSSTRING('Table'[Anuncio],"Canas")=TRUE(),"Canas")&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&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;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 04:59:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-use-CONTAINSTRING-inside-SWITCH/m-p/2801704#M88171</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-28T04:59:03Z</dc:date>
    </item>
  </channel>
</rss>

