<?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 DAX to filter tables by regular expression in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-filter-tables-by-regular-expression/m-p/2072792#M46907</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have following DAX code where I simply filter table gl by another table 'Sheet1' and sum values from gl:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Actuals = CALCULATE(SUM('public gl'[movement]),FILTER(ALL('public gl'[gl_code],'public gl'[business_unit]), 'public gl'[gl_code]='Sheet1'[gl_code] &amp;amp;&amp;amp; 'public gl'[business_unit]='Sheet1'[business_unit]))&lt;/LI-CODE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So Sheet1[gl_code] contains values like 1*, 2* and 101,102,201 etc. What I need is Filter to consider symbol * as regular expression and filter all gl_codes starts with 1 and 2 and also full gl_code`s like 101,102,201.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;* symbol could be subsituted with other symbol.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Turkel.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Mon, 13 Sep 2021 12:11:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-09-13T12:11:49Z</dc:date>
    <item>
      <title>DAX to filter tables by regular expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-filter-tables-by-regular-expression/m-p/2072792#M46907</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have following DAX code where I simply filter table gl by another table 'Sheet1' and sum values from gl:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Actuals = CALCULATE(SUM('public gl'[movement]),FILTER(ALL('public gl'[gl_code],'public gl'[business_unit]), 'public gl'[gl_code]='Sheet1'[gl_code] &amp;amp;&amp;amp; 'public gl'[business_unit]='Sheet1'[business_unit]))&lt;/LI-CODE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So Sheet1[gl_code] contains values like 1*, 2* and 101,102,201 etc. What I need is Filter to consider symbol * as regular expression and filter all gl_codes starts with 1 and 2 and also full gl_code`s like 101,102,201.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;* symbol could be subsituted with other symbol.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Turkel.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Sep 2021 12:11:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-filter-tables-by-regular-expression/m-p/2072792#M46907</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-13T12:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to filter tables by regular expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-filter-tables-by-regular-expression/m-p/2072913#M46913</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to use Left dax code in a filter, something like this:&lt;/P&gt;&lt;P&gt;filter(&lt;SPAN&gt;Sheet1,left(&lt;/SPAN&gt;&lt;SPAN&gt;Sheet1[gl_code],1)=1&amp;amp;&amp;amp;left(Sheet1[gl_code],1)=2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;SPAN&gt;, please consider&amp;nbsp;&lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;it as the solution&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;&lt;STRONG&gt;Appreciate your Kudos&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;STRONG&gt;!!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 13:22:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-filter-tables-by-regular-expression/m-p/2072913#M46913</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-09-13T13:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to filter tables by regular expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-filter-tables-by-regular-expression/m-p/2073009#M46924</link>
      <description>&lt;P&gt;Actually left DAX will not help here becouse gl_code could be 1*, 15* or full account 155 so in case of * it need to get all subaccounts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 13:56:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-filter-tables-by-regular-expression/m-p/2073009#M46924</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-13T13:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to filter tables by regular expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-filter-tables-by-regular-expression/m-p/2073859#M46962</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share a sample of your data here? [In a Table Format]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos&lt;/STRONG&gt;&lt;STRONG&gt;!!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 00:47:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-filter-tables-by-regular-expression/m-p/2073859#M46962</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-09-14T00:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to filter tables by regular expression</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-filter-tables-by-regular-expression/m-p/2078097#M47123</link>
      <description>&lt;P&gt;If you really want to have something like a regex matcher in DAX... well, you can forget it. There's no such thing in DAX. DAX has a very simple string pattern matching mechanism that is not even on par with the SQL LIKE operator, so any even unsophisticated pattern matching is not possible.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 15:30:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-filter-tables-by-regular-expression/m-p/2078097#M47123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-15T15:30:00Z</dc:date>
    </item>
  </channel>
</rss>

