<?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 DAX Wild Cards in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-DAX-Wild-Cards/m-p/787545#M4388</link>
    <description>&lt;P&gt;Sorry, forgot to include link. It's at:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/u/s!AmxJyApgEAcYgu8hWCiVMg5ovezi2A?e=jFKcxr&amp;nbsp;" target="_blank"&gt;https://1drv.ms/u/s!AmxJyApgEAcYgu8hWCiVMg5ovezi2A?e=jFKcxr&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2019 20:18:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-09-09T20:18:16Z</dc:date>
    <item>
      <title>Using DAX Wild Cards</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-DAX-Wild-Cards/m-p/787458#M4386</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been experimenting with DAX wild cards but not getting the results I expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a sample of the data I'm using:&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;CALCULATEI wondered whether I could, in CALCULATE&amp;nbsp;statements, use just part of the "Product" text by using wildcards. I've created the&amp;nbsp; following Measures:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;C1 Sales = CALCULATE([Total Sales £],Sales[Product]="C*") &lt;U&gt;&lt;EM&gt;(**I expected this to select rows with"Carrot")&lt;/EM&gt;&lt;/U&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Pot Sales = CALCULATE([Total Sales £],FILTER(Sales,Sales[Product]="Pot*"))&amp;nbsp;&lt;U&gt;&lt;EM&gt;(**I expected this to select rows with"Potato")&lt;/EM&gt;&lt;/U&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ThirdLetterO Sales = CALCULATE([Total Sales £],Sales[Product]="??o*")&amp;nbsp;&lt;U&gt;&lt;EM&gt;(**I expected this to select rows with"Whole Wheat")&lt;/EM&gt;&lt;/U&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;, but I can't get these to work, for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;These 2 work fine - no wildcards:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Carrot Sales = CALCULATE([Total Sales £],Sales[Product]="Carrot")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Potato Sales = CALCULATE([Total Sales £],Left(Sales[Product],3)="Pot")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;So - what's wrong with my attempts at using wildcards in CALCULATE, with or without FILTER?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 17:01:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-DAX-Wild-Cards/m-p/787458#M4386</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-09T17:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using DAX Wild Cards</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-DAX-Wild-Cards/m-p/787545#M4388</link>
      <description>&lt;P&gt;Sorry, forgot to include link. It's at:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/u/s!AmxJyApgEAcYgu8hWCiVMg5ovezi2A?e=jFKcxr&amp;nbsp;" target="_blank"&gt;https://1drv.ms/u/s!AmxJyApgEAcYgu8hWCiVMg5ovezi2A?e=jFKcxr&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 20:18:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-DAX-Wild-Cards/m-p/787545#M4388</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-09T20:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using DAX Wild Cards</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-DAX-Wild-Cards/m-p/787589#M4389</link>
      <description>&lt;P&gt;Hi, here are some possible strategies for solving your problem:&lt;BR /&gt;&lt;A href="https://www.sqlbi.com/articles/from-sql-to-dax-string-comparison/" target="_self"&gt;https://www.sqlbi.com/articles/from-sql-to-dax-string-comparison/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 21:37:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-DAX-Wild-Cards/m-p/787589#M4389</guid>
      <dc:creator>sturlaws</dc:creator>
      <dc:date>2019-09-09T21:37:45Z</dc:date>
    </item>
  </channel>
</rss>

