<?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 into Dax in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-into-Dax/m-p/1666697#M34026</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure 2 = 
VAR first= min(JF_BI_Datum[Datum])
VAR last= max(JF_BI_Datum[Datum])

RETURN
calculate(countrows(JF_BI_Adr), filter(JF_BI_Adr,DATESBETWEEN(JF_BI_Adr[Resign_Date],first,last)))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Feb 2021 11:40:13 GMT</pubDate>
    <dc:creator>Jensej</dc:creator>
    <dc:date>2021-02-15T11:40:13Z</dc:date>
    <item>
      <title>SQL into Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-into-Dax/m-p/1666436#M34019</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table in Power Bi with a Month Column Jan-Dec for year 2020. Now i want to a second column that shows the people who resigned in that month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In sql i would solve it like this but i don't know if it would work if just create a measure and i don't know the dax code for it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help with the dax code for this select?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT Name + CAST(day(Resign_Date) as varchar) as Name FROM BI_Adr
WHERE Entry_Date &amp;lt;= GETDATE() and Resign_Date &amp;gt; GETDATE()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 09:11:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-into-Dax/m-p/1666436#M34019</guid>
      <dc:creator>Jensej</dc:creator>
      <dc:date>2021-02-15T09:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: SQL into Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-into-Dax/m-p/1666487#M34020</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/229951"&gt;@Jensej&lt;/a&gt; , In a table visual take name, Resign_Date and this measure &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;measure&amp;nbsp; =calculate(countrows(Table), filter(Table, Table[Entry_Date] &amp;lt;=Today() &amp;amp;&amp;amp; Table[Resign_Date] &amp;gt;=Today()))&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 09:24:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-into-Dax/m-p/1666487#M34020</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-02-15T09:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: SQL into Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-into-Dax/m-p/1666642#M34023</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/148838"&gt;@amitchandak&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply, if i do this i get this error message in the table visual. "A table of multiple values was supplied where a single value was expected"&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 10:21:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-into-Dax/m-p/1666642#M34023</guid>
      <dc:creator>Jensej</dc:creator>
      <dc:date>2021-02-15T10:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: SQL into Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-into-Dax/m-p/1666655#M34025</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/229951"&gt;@Jensej&lt;/a&gt; , Can you share your measure &lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 10:25:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-into-Dax/m-p/1666655#M34025</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-02-15T10:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: SQL into Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-into-Dax/m-p/1666697#M34026</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure 2 = 
VAR first= min(JF_BI_Datum[Datum])
VAR last= max(JF_BI_Datum[Datum])

RETURN
calculate(countrows(JF_BI_Adr), filter(JF_BI_Adr,DATESBETWEEN(JF_BI_Adr[Resign_Date],first,last)))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 11:40:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-into-Dax/m-p/1666697#M34026</guid>
      <dc:creator>Jensej</dc:creator>
      <dc:date>2021-02-15T11:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: SQL into Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-into-Dax/m-p/1666960#M34037</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/229951"&gt;@Jensej&lt;/a&gt; , Try like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure 2 = &lt;BR /&gt;VAR first= minX(allselected(JF_BI_Datum), JF_BI_Datum[Datum])&lt;BR /&gt;VAR last= maxX(allselected(JF_BI_Datum),JF_BI_Datum[Datum])&lt;/P&gt;
&lt;P&gt;RETURN&lt;BR /&gt;calculate(countrows(JF_BI_Adr), filter(JF_BI_Adr,DATESBETWEEN(JF_BI_Adr[Resign_Date],first,last)))&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 12:49:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-into-Dax/m-p/1666960#M34037</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-02-15T12:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: SQL into Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-into-Dax/m-p/1667026#M34039</link>
      <description>&lt;P&gt;Sadly still the same error &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 13:17:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-into-Dax/m-p/1667026#M34039</guid>
      <dc:creator>Jensej</dc:creator>
      <dc:date>2021-02-15T13:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: SQL into Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-into-Dax/m-p/1668744#M34088</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/148838"&gt;@amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I almost solved the problem with this Measure. It shows me the day and name of the person that left that month. It works perfect as long as only one person left that month but if it's more it only shows 1 person. Is there some way to do some kind of loop and see if there is more persons and then add like a&amp;nbsp; comma and that person on the same row?&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Resigns = 
CALCULATE (
DAY(min(JF_BI_Adr[Resign_Date])) &amp;amp; " " &amp;amp; min(JF_BI_Adr[Full Name]), USERELATIONSHIP (JF_BI_Adr[Resign_Date], JF_BI_Datum[Datum] ))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 08:47:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SQL-into-Dax/m-p/1668744#M34088</guid>
      <dc:creator>Jensej</dc:creator>
      <dc:date>2021-02-16T08:47:22Z</dc:date>
    </item>
  </channel>
</rss>

