<?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: Help needed for 'Overdue Items' in Power BI in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-for-Overdue-Items-in-Power-BI/m-p/1908016#M41218</link>
    <description>&lt;P&gt;Thank you so much! This worked perfectly&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jun 2021 05:45:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-06-18T05:45:29Z</dc:date>
    <item>
      <title>Help needed for 'Overdue Items' in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-for-Overdue-Items-in-Power-BI/m-p/1906584#M41165</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am working on creating a report that will show any items that are due past a certain due date. I am hoping to create either a measure or a new column with this info.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The columns I need to use to get this data is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Action Due Date : This has the date that the item is due by.&lt;BR /&gt;Closed Date: The date that the item was closed on.&lt;BR /&gt;Status: This shows if the item is 'complete' 'ongoing' or 'not started'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need the logic to be = If item is not 'complete' then check the Action Due Date by the Closed Date to see if it is overdue, and then mark it as maybe 1? and if its not due yet, then mark as 0?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am then hoping to use this to create a count to see how many overdue items are assigned to each person.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Not sure how to go about this, would appreciate any help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 12:47:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-for-Overdue-Items-in-Power-BI/m-p/1906584#M41165</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-17T12:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed for 'Overdue Items' in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-for-Overdue-Items-in-Power-BI/m-p/1906761#M41175</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this column&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IsOverdue = 
var __Status = [Status]
var __ActionDt = [Action Due Date]
var __ClosedDt = [Closed Date]
return
IF ( __Status = "Complete", 0,
      IF ( __ActionDt &amp;gt; __ClosedDt, 1, 0 )
)
&lt;/LI-CODE&gt;
&lt;P&gt;Wasn't quite clear on the logic of Action Due Date vs Closed Date, but this is the basic code structure you would want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 13:57:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-for-Overdue-Items-in-Power-BI/m-p/1906761#M41175</guid>
      <dc:creator>dedelman_clng</dc:creator>
      <dc:date>2021-06-17T13:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed for 'Overdue Items' in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-for-Overdue-Items-in-Power-BI/m-p/1907107#M41184</link>
      <description>&lt;P&gt;Hi David, thank you for this! This halfway works, just have a quick question about it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So any item that has 'complete' as the action status works perfectly and it counted as '0'. But any items that are not due yet are also being counted as overdue.&lt;/P&gt;&lt;P&gt;For example: An item is due 07/01/2021, and its closed date (which is the date that the item is finished) is blank since there is still time to 'complete' it, but the logic is treating it as overdue and calculating '1'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to include TODAY in the logic. As in, as of TODAY, the item is not overdue if it is compared to the action due date?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really appreciate the help!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 17:12:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-for-Overdue-Items-in-Power-BI/m-p/1907107#M41184</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-17T17:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed for 'Overdue Items' in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-for-Overdue-Items-in-Power-BI/m-p/1907119#M41185</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, we can add TODAY() in there. Try this out&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IsOverdue = 
var __Status = [Status]
var __ActionDt = [Action Due Date]
var __ClosedDt = [Closed Date]
return
IF ( __Status = "Complete", 0,  //Filter out "Complete"
    IF ( __ActionDt &amp;gt;= TODAY(), 0,  //Filter out future due dates
      IF ( __ActionDt &amp;gt; __ClosedDt ||  //Closed item from the past was overdue when completed
               ISBLANK( __ClosedDt ),  //Open item has due date in the past
          1, 0 )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 17:20:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-for-Overdue-Items-in-Power-BI/m-p/1907119#M41185</guid>
      <dc:creator>dedelman_clng</dc:creator>
      <dc:date>2021-06-17T17:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed for 'Overdue Items' in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-for-Overdue-Items-in-Power-BI/m-p/1908016#M41218</link>
      <description>&lt;P&gt;Thank you so much! This worked perfectly&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 05:45:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-needed-for-Overdue-Items-in-Power-BI/m-p/1908016#M41218</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-18T05:45:29Z</dc:date>
    </item>
  </channel>
</rss>

