<?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 find current project status in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-find-current-project-status/m-p/3697212#M143774</link>
    <description>&lt;P&gt;I have a table of different tasks and their scheduled start and end dates.&amp;nbsp; How would I figure out which task is closest to the current date and then display that task in a seperate column in my table.&amp;nbsp; So for example, for this screenshot, I would want the "current status" to be "Design - 0.9" since that task starts 2/9/2024 and is the closest to today's date and has not ended yet.&amp;nbsp; I have already created a field that concatenates the Phase and Design Status but am stuck on how to look up the date range and return what I need.&amp;nbsp; Thanks for any help!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2024 20:28:53 GMT</pubDate>
    <dc:creator>telston</dc:creator>
    <dc:date>2024-02-13T20:28:53Z</dc:date>
    <item>
      <title>DAX to find current project status</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-find-current-project-status/m-p/3697212#M143774</link>
      <description>&lt;P&gt;I have a table of different tasks and their scheduled start and end dates.&amp;nbsp; How would I figure out which task is closest to the current date and then display that task in a seperate column in my table.&amp;nbsp; So for example, for this screenshot, I would want the "current status" to be "Design - 0.9" since that task starts 2/9/2024 and is the closest to today's date and has not ended yet.&amp;nbsp; I have already created a field that concatenates the Phase and Design Status but am stuck on how to look up the date range and return what I need.&amp;nbsp; Thanks for any help!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 20:28:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-find-current-project-status/m-p/3697212#M143774</guid>
      <dc:creator>telston</dc:creator>
      <dc:date>2024-02-13T20:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to find current project status</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-find-current-project-status/m-p/3697616#M143797</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="306516" data-lia-user-login="telston" class="lia-mention lia-mention-user"&gt;telston&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag =
var _today=TODAY()
var _maxdate=
MAXX(
    FILTER(ALL('Table'),
    'Table'[Start Date]&amp;lt;_today),[Start Date])
return
IF(
    MAX('Table'[Start Date])=_maxdate&amp;amp;&amp;amp;MAX('Table'[End Date])&amp;gt;_today,1,0)&lt;/LI-CODE&gt;
&lt;P&gt;2. Place [Flag]in Filters, set is=1, apply filter.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 01:57:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-find-current-project-status/m-p/3697616#M143797</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-14T01:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to find current project status</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-find-current-project-status/m-p/3699463#M143877</link>
      <description>&lt;P&gt;I'm getting an error The data couldn't be loaded for the visual because the DAX couldn't compare values of type Date and values of tyler Text.&amp;nbsp; I tried filtering the table I included above and got the same thing.&amp;nbsp; &amp;nbsp;I can't figure out why I am getting that error when the dates are all in Date format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My ultimate goal is to return the most current status into another table with the project name and other project info.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 17:32:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-find-current-project-status/m-p/3699463#M143877</guid>
      <dc:creator>telston</dc:creator>
      <dc:date>2024-02-14T17:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to find current project status</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-find-current-project-status/m-p/3719056#M144801</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="306516" data-lia-user-login="telston" class="lia-mention lia-mention-user"&gt;telston&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to the error message, DAX cannot compare the value of Date type with the value of Text, you can check whether [start date] is in Text format.&lt;/P&gt;
&lt;P&gt;You can check whether [start date] is in text format. You can change it to the correct date format in Power Query - Transform.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Or in Power BI Desktop - Column Tools&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 07:11:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-find-current-project-status/m-p/3719056#M144801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-23T07:11:49Z</dc:date>
    </item>
  </channel>
</rss>

