<?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: How to get date difference between last logon and last password reset dates in Active Directory in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-date-difference-between-last-logon-and-last-password/m-p/924974#M9293</link>
    <description>&lt;P&gt;Thanks!!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Feb 2020 07:50:24 GMT</pubDate>
    <dc:creator>KeithKing</dc:creator>
    <dc:date>2020-02-07T07:50:24Z</dc:date>
    <item>
      <title>How to get date difference between last logon and last password reset dates in Active Directory</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-date-difference-between-last-logon-and-last-password/m-p/924842#M9283</link>
      <description>&lt;P&gt;Hi Guys, I would like to get the date difference between Last Logon and Last Password Reset columns and the display a warning or text that the user hasn't reset their password in x amount of days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I am using now but does not display the correct information:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Measure =&lt;BR /&gt;VAR Created =&lt;BR /&gt;MAX ( user[user.lastLogon].[Year])&lt;BR /&gt;VAR Closed =&lt;BR /&gt;MAX ( user[user.pwdLastSet].[Year] )&lt;BR /&gt;VAR NoOfDays =&lt;BR /&gt;IF (&lt;BR /&gt;Closed &amp;gt; Created,&lt;BR /&gt;DATEDIFF ( Created, Closed, YEAR),&lt;BR /&gt;DATEDIFF ( Closed, Created, YEAR)&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;IF ( NoOfDays &amp;gt;= 1, "User account Fine", "Password Needs to be Reset )&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 05:52:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-date-difference-between-last-logon-and-last-password/m-p/924842#M9283</guid>
      <dc:creator>KeithKing</dc:creator>
      <dc:date>2020-02-07T05:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get date difference between last logon and last password reset dates in Active Directory</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-date-difference-between-last-logon-and-last-password/m-p/924872#M9284</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="205242" data-lia-user-login="KeithKing" class="lia-mention lia-mention-user"&gt;KeithKing&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try the same but without .[Year] in Created and Closed variables&lt;/P&gt;&lt;P&gt;That should be enough&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;do not hesitate to give a kudo to useful posts and mark solutions as solution&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 06:26:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-date-difference-between-last-logon-and-last-password/m-p/924872#M9284</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-02-07T06:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to get date difference between last logon and last password reset dates in Active Directory</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-date-difference-between-last-logon-and-last-password/m-p/924903#M9287</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It sort of works now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; but the problem is that I have an account CustomerCare1&amp;nbsp; with last logon at 2019/12/06 and last password reset at 2019/08/02.&amp;nbsp; This is a 4 month difference but it says the user account is fine? It needs to check the year as well as months (3 months after that password needs to be reset)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope I am making sense?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 07:01:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-date-difference-between-last-logon-and-last-password/m-p/924903#M9287</guid>
      <dc:creator>KeithKing</dc:creator>
      <dc:date>2020-02-07T07:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get date difference between last logon and last password reset dates in Active Directory</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-date-difference-between-last-logon-and-last-password/m-p/924938#M9290</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="205242" data-lia-user-login="KeithKing" class="lia-mention lia-mention-user"&gt;KeithKing&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DATEDIFF ( Created, Closed, MONTH) will give you difference in monthes without any dependencies of Year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DATEDIFF ( DATE(2019,11,1), DATE(2020,1,11), MONTH) will return you 2 month difference&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;do not hesitate to give a kudo to useful posts and mark solutions as solution&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 07:30:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-date-difference-between-last-logon-and-last-password/m-p/924938#M9290</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-02-07T07:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to get date difference between last logon and last password reset dates in Active Directory</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-date-difference-between-last-logon-and-last-password/m-p/924974#M9293</link>
      <description>&lt;P&gt;Thanks!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 07:50:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-date-difference-between-last-logon-and-last-password/m-p/924974#M9293</guid>
      <dc:creator>KeithKing</dc:creator>
      <dc:date>2020-02-07T07:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get date difference between last logon and last password reset dates in Active Directory</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-date-difference-between-last-logon-and-last-password/m-p/924979#M9296</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="205242" data-lia-user-login="KeithKing" class="lia-mention lia-mention-user"&gt;KeithKing&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does it work ok?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;do not hesitate to give a kudo to useful posts and mark solutions as solution&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 07:56:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-date-difference-between-last-logon-and-last-password/m-p/924979#M9296</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-02-07T07:56:22Z</dc:date>
    </item>
  </channel>
</rss>

