<?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: Switch Statement for multiple text criteria in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-Statement-for-multiple-text-criteria/m-p/1714275#M35392</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;- Thank you works great!&lt;/P&gt;</description>
    <pubDate>Wed, 10 Mar 2021 15:38:33 GMT</pubDate>
    <dc:creator>v_mark</dc:creator>
    <dc:date>2021-03-10T15:38:33Z</dc:date>
    <item>
      <title>Switch Statement for multiple text criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-Statement-for-multiple-text-criteria/m-p/1712112#M35324</link>
      <description>&lt;P&gt;I was creating a switch statement for all the states in the US and Group them into per region.&amp;nbsp; that will be used for a filter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed that I have to declare each state in my switch statement. Just like below&lt;BR /&gt;&lt;BR /&gt;State Groups = SWITCH( TRUE(),&lt;BR /&gt;sample[State] = "WV" , "CAPITAL",&lt;BR /&gt;sample[State] = "DE" , "CAPITAL",&lt;BR /&gt;sample[State] = "DC" , "CAPITAL",&lt;BR /&gt;sample[State] = "MD" , "CAPITAL",&lt;BR /&gt;sample[State] = "VA" , "CAPITAL",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the rest goes on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to combine at least or write an OR statement instead of having 50+ lines?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 17:32:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-Statement-for-multiple-text-criteria/m-p/1712112#M35324</guid>
      <dc:creator>v_mark</dc:creator>
      <dc:date>2021-03-09T17:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Switch Statement for multiple text criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-Statement-for-multiple-text-criteria/m-p/1712700#M35344</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="273900" data-lia-user-login="v_mark" class="lia-mention lia-mention-user"&gt;v_mark&lt;/a&gt; , I am adding in and Or example , both will work same in this case &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;State Groups = SWITCH( TRUE(),&lt;BR /&gt;sample[State] in{ "WV", "DE","DC","MD","VA"} "CAPITAL", // how to use in &lt;BR /&gt;sample[State] = "DE" || sample[State] = "DC" ||&amp;nbsp;sample[State] = "DE" , "CAPITAL", //how to use OR&lt;/P&gt;
&lt;P&gt;"NA" //deafult va;ue &lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 04:29:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-Statement-for-multiple-text-criteria/m-p/1712700#M35344</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-03-10T04:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Switch Statement for multiple text criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-Statement-for-multiple-text-criteria/m-p/1714275#M35392</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;- Thank you works great!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 15:38:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-Statement-for-multiple-text-criteria/m-p/1714275#M35392</guid>
      <dc:creator>v_mark</dc:creator>
      <dc:date>2021-03-10T15:38:33Z</dc:date>
    </item>
  </channel>
</rss>

