<?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: sql to DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sql-to-DAX/m-p/789351#M4459</link>
    <description>&lt;P&gt;You can go ahead with anything as long as it's giving the correct result.. :)&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2019 11:36:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-09-11T11:36:32Z</dc:date>
    <item>
      <title>sql to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sql-to-DAX/m-p/787961#M4400</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Can you please let me know if the following sql should give the same result as the followed DAX?&lt;BR /&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select&lt;BR /&gt;p.[field1], count(distinct p.[field3]) AS "Mycount"&lt;BR /&gt;from&lt;BR /&gt;TableP AS p&lt;BR /&gt;INNER JOIN TableH AS h ON p.ID = h.ID&lt;BR /&gt;where&lt;BR /&gt;h.[field7] &amp;gt; 0&lt;BR /&gt;AND p.[field2] = 'some text'&lt;BR /&gt;group by&lt;BR /&gt;p.[field1]&lt;BR /&gt;having count(distinct p.[field3]) &amp;gt;= 2&lt;BR /&gt;--------------------------------------------------------&lt;BR /&gt;FILTER (&lt;BR /&gt;SUMMARIZE (&lt;BR /&gt;'TableP'&lt;BR /&gt;,'TableP'[field1],&lt;BR /&gt;'TableP'[field2],&lt;BR /&gt;"Mycount", DISTINCTCOUNT ( 'TableP'[field3] ),&lt;BR /&gt;),&lt;BR /&gt;[price] &amp;gt; 0&lt;BR /&gt;&amp;amp;&amp;amp; SEARCH ( "some text", 'TableP'[field2], 1, 0 )&lt;BR /&gt;&amp;amp;&amp;amp; not ISBLANK('TableP'[field3])&lt;BR /&gt;&amp;amp;&amp;amp; [MyCount] &amp;gt;= 2&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 07:44:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sql-to-DAX/m-p/787961#M4400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-10T07:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: sql to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sql-to-DAX/m-p/788509#M4417</link>
      <description>&lt;P&gt;Try to use below DAX. Just replace your table and column names.&lt;/P&gt;&lt;P&gt;You can add more filters too.&lt;/P&gt;&lt;PRE&gt;FILTER( CALCULATETABLE( SUMMARIZECOLUMNS(DimProduct[EnglishProductName], 
		DimProduct, 
		"Mycount", 
		DISTINCTCOUNT( FactInternetSales[OrderDate]) 
		) 
	),
	CALCULATE(DISTINCTCOUNT( FactInternetSales[OrderDate])) &amp;gt;= 3 &amp;amp;&amp;amp;
	DimProduct[EnglishProductName]="some text"
)&lt;/PRE&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 16:24:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sql-to-DAX/m-p/788509#M4417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-10T16:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: sql to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sql-to-DAX/m-p/789338#M4457</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;This seems to be giving the similar result to my filter and summarize dax&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 11:27:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sql-to-DAX/m-p/789338#M4457</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-11T11:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: sql to DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sql-to-DAX/m-p/789351#M4459</link>
      <description>&lt;P&gt;You can go ahead with anything as long as it's giving the correct result.. :)&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 11:36:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/sql-to-DAX/m-p/789351#M4459</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-11T11:36:32Z</dc:date>
    </item>
  </channel>
</rss>

