<?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: Using wildcard characters in a SWITCH function in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-wildcard-characters-in-a-SWITCH-function/m-p/1716821#M35474</link>
    <description>&lt;P&gt;Hi all, the solution turned out to be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF (LEFT ( Storage[Productgroup) =&amp;nbsp;LEN(1)) = "3",&amp;nbsp;"Tools",&lt;/P&gt;&lt;P&gt;IF (LEFT ( Storage[Productgroup], LEN(1)) = "4",&amp;nbsp;"Service",&lt;/P&gt;&lt;P&gt;IF (LEFT ( Storage[Productgroup], LEN(1)) = "5", "Transport"&lt;/P&gt;</description>
    <pubDate>Thu, 11 Mar 2021 14:27:15 GMT</pubDate>
    <dc:creator>Joachim2108</dc:creator>
    <dc:date>2021-03-11T14:27:15Z</dc:date>
    <item>
      <title>Using wildcard characters in a SWITCH function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-wildcard-characters-in-a-SWITCH-function/m-p/1714131#M35385</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm struggling to create a new collumn with wildcard characters, based on certain values in another collumn using the SWITCH function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The products in the original collumn are grouped between 100-900 (e.g. 112, 320 etc.). I want to group these into smaller categories.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In plain english I want for example: if the ProductGroup starts with 3, i.e. is between 300-399 (data type = text), it needs to be categorised as "Tools". I used wilcard characters in the DAX query, however it doesn't seem to recognise them. A piece of the query is below - what am I doing wrong? Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ProductCategory=&lt;/P&gt;&lt;P&gt;SWITCH ( TRUE (),&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Storage’[ProductGroup] = "3**", "Tools",&lt;/P&gt;&lt;P&gt;'Storage’[ProductGroup] = "4**", "Service",&lt;/P&gt;&lt;P&gt;'Storage’[ProductGroup] = "5**", "Transport",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Other" )&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 14:15:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-wildcard-characters-in-a-SWITCH-function/m-p/1714131#M35385</guid>
      <dc:creator>Joachim2108</dc:creator>
      <dc:date>2021-03-10T14:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using wildcard characters in a SWITCH function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-wildcard-characters-in-a-SWITCH-function/m-p/1714198#M35389</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="289813" data-lia-user-login="Joachim2108" class="lia-mention lia-mention-user"&gt;Joachim2108&lt;/a&gt;&amp;nbsp;Wildcards are not supported in DAX afaik, you will have to use either&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://dax.guide/containsstring/" target="_blank"&gt;https://dax.guide/containsstring/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://dax.guide/containsstringexact/" target="_blank"&gt;https://dax.guide/containsstringexact/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 14:52:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-wildcard-characters-in-a-SWITCH-function/m-p/1714198#M35389</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2021-03-10T14:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using wildcard characters in a SWITCH function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-wildcard-characters-in-a-SWITCH-function/m-p/1715643#M35443</link>
      <description>&lt;P&gt;If I can't use wildcards, could I combine the SWITCH statement with a LEFT statement?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 07:45:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-wildcard-characters-in-a-SWITCH-function/m-p/1715643#M35443</guid>
      <dc:creator>Joachim2108</dc:creator>
      <dc:date>2021-03-11T07:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using wildcard characters in a SWITCH function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-wildcard-characters-in-a-SWITCH-function/m-p/1716821#M35474</link>
      <description>&lt;P&gt;Hi all, the solution turned out to be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF (LEFT ( Storage[Productgroup) =&amp;nbsp;LEN(1)) = "3",&amp;nbsp;"Tools",&lt;/P&gt;&lt;P&gt;IF (LEFT ( Storage[Productgroup], LEN(1)) = "4",&amp;nbsp;"Service",&lt;/P&gt;&lt;P&gt;IF (LEFT ( Storage[Productgroup], LEN(1)) = "5", "Transport"&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 14:27:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-wildcard-characters-in-a-SWITCH-function/m-p/1716821#M35474</guid>
      <dc:creator>Joachim2108</dc:creator>
      <dc:date>2021-03-11T14:27:15Z</dc:date>
    </item>
  </channel>
</rss>

