<?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: Converting SQL into DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/3296915#M122840</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;Here is how I would translate this to a DAX query:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;EVALUATE
VAR NC_Number_Filter =
    CALCULATETABLE (
        VALUES ( W_PTP_NC_PHASE[NC Number] ),
        VW_PTP_NC_PHASE[Workflow Phase Name] = "Closed"
    )
RETURN
    CALCULATETABLE ( VW_PTP_NC_PHASE, NC_Number_Filter )&lt;/LI-CODE&gt;
&lt;P&gt;Where are you intending to use this?&lt;/P&gt;
&lt;P&gt;There may be other considerations depending on the context, but essentially the same code should work elsewhere, such as in a measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jun 2023 04:52:54 GMT</pubDate>
    <dc:creator>OwenAuger</dc:creator>
    <dc:date>2023-06-22T04:52:54Z</dc:date>
    <item>
      <title>Converting SQL into DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/3296544#M122827</link>
      <description>&lt;P&gt;Can anyone help me to convert below SQL into DAX?&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SELECT&lt;/SPAN&gt; *&lt;BR /&gt;&lt;SPAN&gt;FROM&lt;/SPAN&gt; VW_PTP_NC_PHASE&lt;BR /&gt;&lt;SPAN&gt;WHERE&lt;/SPAN&gt; &lt;SPAN&gt;VW_PTP_NC_PHASE[NC Number]&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;IN&lt;/SPAN&gt; &lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SELECT&lt;/SPAN&gt; &lt;SPAN&gt;VW_PTP_NC_PHASE[NC Number]&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;FROM&lt;/SPAN&gt; VW_PTP_NC_PHASE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;WHERE&lt;/SPAN&gt; &lt;SPAN&gt;VW_PTP_NC_PHASE[Workflow Phase Name]&lt;/SPAN&gt;=&lt;SPAN&gt;"Closed"&lt;/SPAN&gt;&lt;SPAN&gt;) "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 22:41:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/3296544#M122827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-21T22:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Converting SQL into DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/3296915#M122840</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;Here is how I would translate this to a DAX query:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;EVALUATE
VAR NC_Number_Filter =
    CALCULATETABLE (
        VALUES ( W_PTP_NC_PHASE[NC Number] ),
        VW_PTP_NC_PHASE[Workflow Phase Name] = "Closed"
    )
RETURN
    CALCULATETABLE ( VW_PTP_NC_PHASE, NC_Number_Filter )&lt;/LI-CODE&gt;
&lt;P&gt;Where are you intending to use this?&lt;/P&gt;
&lt;P&gt;There may be other considerations depending on the context, but essentially the same code should work elsewhere, such as in a measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 04:52:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/3296915#M122840</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2023-06-22T04:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Converting SQL into DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/3296927#M122843</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Dax format =&amp;nbsp; &amp;nbsp;FILTER( VW_PTP_NC_PHASE,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CONTAINS( VALUES(VW_PTP_NC_PHASE[NC Number]),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CALCULATETABLE( VALUES(VW_PTP_NC_PHASE[NC Number]),&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VW_PTP_NC_PHASE[Workflow Phase Name] = "Closed" ), VW_PTP_NC_PHASE[NC Number]&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 05:09:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/3296927#M122843</guid>
      <dc:creator>devanshi</dc:creator>
      <dc:date>2023-06-22T05:09:29Z</dc:date>
    </item>
  </channel>
</rss>

