<?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: Convert SQL to DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-SQL-to-DAX/m-p/3166685#M113908</link>
    <description>&lt;P&gt;CALCULATETABLE(&amp;lt;your table&amp;gt;,&lt;/P&gt;
&lt;P&gt;LEN([col1])=10&lt;BR /&gt;|| MID([col2],1,3) in {&lt;SPAN&gt;"103","234","563"}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;|| MID([col2],1,4) in {"2354"}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;|| MID([col2],1,2) in {"14","24","36"}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can add SELECTCOLUMNS if you want. N&lt;/SPAN&gt;&lt;SPAN&gt;ote that your third condition is semi redundant.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2023 23:34:43 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2023-03-31T23:34:43Z</dc:date>
    <item>
      <title>Convert SQL to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-SQL-to-DAX/m-p/3163010#M113655</link>
      <description>&lt;P&gt;Please,&amp;nbsp;&lt;SPAN&gt;I need help about how to convert this SQL query to DAX.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;select col1, col2, col3&lt;BR /&gt;from tab&lt;BR /&gt;where length(col1) = '10'&lt;BR /&gt;or (substr(col2,1,3) in ('103','234','563')&lt;BR /&gt;or (substr(col2,1,4) in ('1034','2354','5636')&lt;BR /&gt;or (substr(col2,1,2) in ('14','24','36')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 09:42:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-SQL-to-DAX/m-p/3163010#M113655</guid>
      <dc:creator>rolinx</dc:creator>
      <dc:date>2023-03-30T09:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SQL to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-SQL-to-DAX/m-p/3166685#M113908</link>
      <description>&lt;P&gt;CALCULATETABLE(&amp;lt;your table&amp;gt;,&lt;/P&gt;
&lt;P&gt;LEN([col1])=10&lt;BR /&gt;|| MID([col2],1,3) in {&lt;SPAN&gt;"103","234","563"}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;|| MID([col2],1,4) in {"2354"}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;|| MID([col2],1,2) in {"14","24","36"}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can add SELECTCOLUMNS if you want. N&lt;/SPAN&gt;&lt;SPAN&gt;ote that your third condition is semi redundant.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 23:34:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-SQL-to-DAX/m-p/3166685#M113908</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-03-31T23:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SQL to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-SQL-to-DAX/m-p/3166770#M113919</link>
      <description>&lt;P&gt;Thanks Ibendlin, Its works fine!&lt;BR /&gt;Its works also with LEFT function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATETABLE(&amp;lt;your table&amp;gt;,&lt;/P&gt;&lt;P&gt;LEN([col1])=10&lt;BR /&gt;|| LEFT([col2],3) in {&lt;SPAN&gt;"103","234","563"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;|| LEFT([col2],4) in {"2354"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;|| LEFT([col2],2) in {"14","24","36"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2023 00:48:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-SQL-to-DAX/m-p/3166770#M113919</guid>
      <dc:creator>rolinx</dc:creator>
      <dc:date>2023-04-01T00:48:46Z</dc:date>
    </item>
  </channel>
</rss>

