<?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 much time employee(EID) spent with system based on login and logout time. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2388105#M61981</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="353167" data-lia-user-login="anjanikumar" class="lia-mention lia-mention-user"&gt;anjanikumar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a measure to get logged in time, calculated for each EID &amp;amp; each day separately.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Logged In Time = 
SUMX(
    SUMMARIZE('Sample','Sample'[EID], 'Sample'[date]),
    VAR _MinLogin = CALCULATE(MIN('Sample'[time]),'Sample'[SysStatus] = TRUE())
    VAR _MaxLogout = CALCULATE(MAX('Sample'[time]),'Sample'[SysStatus] = FALSE())
    RETURN
    IF(_MinLogin &amp;amp;&amp;amp; _MaxLogout &amp;amp;&amp;amp; _MinLogin &amp;lt; _MaxLogout,
        _MaxLogout - _MinLogin
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The IF condition is checking there's a login time on that day, a logout time and the login is before the logout.&amp;nbsp; If that isn't the case that day is ignored.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Mar 2022 08:24:56 GMT</pubDate>
    <dc:creator>PaulOlding</dc:creator>
    <dc:date>2022-03-11T08:24:56Z</dc:date>
    <item>
      <title>How much time employee(EID) spent with system based on login and logout time.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2385773#M61792</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;As per above table, want measure for "How much time employee(EID) spent with system based on login and logout time"&lt;/P&gt;&lt;P&gt;Login time is true ,Logout time is false.(Both are same column(time)).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output like this&amp;nbsp; &amp;nbsp;E1105D(EID) -&amp;gt;date(2/20/2022) -&amp;gt; time(18:35(true value) - 21:59(false value)) =&amp;nbsp; 3:24 hours spent on that date with system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help me asap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 10:05:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2385773#M61792</guid>
      <dc:creator>anjanikumar</dc:creator>
      <dc:date>2022-03-10T10:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: How much time employee(EID) spent with system based on login and logout time.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2385826#M61795</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;sorry but i think that with your exemple is not possible to do anything.&lt;/P&gt;&lt;P&gt;ok 3:24 for the first&lt;/P&gt;&lt;P&gt;but the second start on 02/20/2022 and logout on02/23/2022?!?&lt;/P&gt;&lt;P&gt;then he logins twice ???&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 10:24:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2385826#M61795</guid>
      <dc:creator>serpiva64</dc:creator>
      <dc:date>2022-03-10T10:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: How much time employee(EID) spent with system based on login and logout time.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2385829#M61796</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="353167" data-lia-user-login="anjanikumar" class="lia-mention lia-mention-user"&gt;anjanikumar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do you mean to say MIN (true value) - MAX (false value)?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 10:28:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2385829#M61796</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-10T10:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: How much time employee(EID) spent with system based on login and logout time.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2385831#M61798</link>
      <description>&lt;P&gt;please explicit the complete output for your data not only the first one in order to understand better&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 10:31:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2385831#M61798</guid>
      <dc:creator>serpiva64</dc:creator>
      <dc:date>2022-03-10T10:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: How much time employee(EID) spent with system based on login and logout time.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2385833#M61799</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/317289" target="_self"&gt;&lt;SPAN class=""&gt;tamerj1,&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Login time is true ,Logout time is false.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Thank you for your response !!&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;</description>
      <pubDate>Thu, 10 Mar 2022 10:33:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2385833#M61799</guid>
      <dc:creator>anjanikumar</dc:creator>
      <dc:date>2022-03-10T10:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: How much time employee(EID) spent with system based on login and logout time.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2385839#M61801</link>
      <description>&lt;P&gt;Sorry, but you have two consecutive login for the same Employee?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 10:37:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2385839#M61801</guid>
      <dc:creator>serpiva64</dc:creator>
      <dc:date>2022-03-10T10:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: How much time employee(EID) spent with system based on login and logout time.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2385844#M61802</link>
      <description>&lt;P&gt;yes , will be login twice some times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but the second start on 02/20/2022 and logout on02/23/2022?!? --&amp;nbsp; this might be date related issue. leave this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but we will take it initial time and last time in same day.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 10:39:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2385844#M61802</guid>
      <dc:creator>anjanikumar</dc:creator>
      <dc:date>2022-03-10T10:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: How much time employee(EID) spent with system based on login and logout time.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2385850#M61803</link>
      <description>&lt;P&gt;yes , we have two logins for same employee, but will take it initial login time and last logout time in same day.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 10:43:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2385850#M61803</guid>
      <dc:creator>anjanikumar</dc:creator>
      <dc:date>2022-03-10T10:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: How much time employee(EID) spent with system based on login and logout time.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2385860#M61804</link>
      <description>&lt;P&gt;sorry, but there is not a logout in 2/23/2022 after the login at 17:17&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 10:46:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2385860#M61804</guid>
      <dc:creator>serpiva64</dc:creator>
      <dc:date>2022-03-10T10:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: How much time employee(EID) spent with system based on login and logout time.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2385880#M61806</link>
      <description>&lt;P&gt;leave it data&amp;nbsp;@&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/96253" target="_self"&gt;&lt;SPAN class=""&gt;serpiva64&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i want measure for initial login and last logout time in same day.(in between time difference needed).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 10:53:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2385880#M61806</guid>
      <dc:creator>anjanikumar</dc:creator>
      <dc:date>2022-03-10T10:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: How much time employee(EID) spent with system based on login and logout time.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2385917#M61810</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="353167" data-lia-user-login="anjanikumar" class="lia-mention lia-mention-user"&gt;anjanikumar&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Here a sample file with the solution&amp;nbsp;&lt;A href="https://www.dropbox.com/t/MxuzOBQwBl6QgZbX" target="_blank"&gt;https://www.dropbox.com/t/MxuzOBQwBl6QgZbX&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Time Spent = 
VAR LogInTime = 
    CALCULATE ( MINX ( Data, Data[time] ), Data[SysStatus] = TRUE() )
VAR LogOffTime = 
    CALCULATE ( MAXX ( Data, Data[time] ), Data[SysStatus] = FALSE() )
RETURN
    LogOffTime - LogInTime&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 11:09:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2385917#M61810</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-10T11:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: How much time employee(EID) spent with system based on login and logout time.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2386187#M61829</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;lt;pi&amp;gt;A circular dependency was detected: Sample[Timespent], 7ca15ac4-071a-4982-aa19-f14a8747771f, Sample[Timespent].&amp;lt;/pi&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;getting this error while writing above measure please help me&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 12:25:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2386187#M61829</guid>
      <dc:creator>anjanikumar</dc:creator>
      <dc:date>2022-03-10T12:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: How much time employee(EID) spent with system based on login and logout time.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2386254#M61832</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="353167" data-lia-user-login="anjanikumar" class="lia-mention lia-mention-user"&gt;anjanikumar&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Are writing a measure or a calculated column? Please make sure you create a measure&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 12:55:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2386254#M61832</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-10T12:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: How much time employee(EID) spent with system based on login and logout time.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2386287#M61835</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can try this in power query:&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("jZBBCgIxDEXvkvXAJL/tVLPWU5RZ6GJO4P0xIMhESOyi0MLjpXlj0EELPezcRbjd7AJeGSsYsIdctDTal0GvSS73QbRdJ3yAsgS+cp7bVaL//XI94OqZ27T2YG71+6LM+IyrX9/zw4H/dJ7hcp/vnHCus+fizjnXAy7unHCuc85Z5/0N", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [SysStatus = _t, #"System#" = _t, EID = _t, date = _t, time = _t]),&lt;BR /&gt;#"Changed Type" = Table.TransformColumnTypes(Source,{{"date", type date}, {"time", type time}}),&lt;BR /&gt;#"Filtered Rows f" = Table.SelectRows(#"Changed Type", each ([SysStatus] = "f")),&lt;BR /&gt;#"Filtered Rows t" = Table.SelectRows(#"Changed Type", each ([SysStatus] = "t")),&lt;BR /&gt;#"Grouped Rows1" = Table.Group(#"Filtered Rows f", {"EID", "System#", "date", "SysStatus"}, {{"Max", each List.Max([time]), type nullable time}}),&lt;BR /&gt;#"Grouped Rows" = Table.Group(#"Filtered Rows t", {"EID", "System#", "date", "SysStatus"}, {{"Min", each List.Min([time]), type nullable time}}),&lt;BR /&gt;#"Merged Queries" = Table.NestedJoin(#"Grouped Rows", {"EID", "System#", "date"}, #"Grouped Rows1", {"EID", "System#", "date"}, "Grouped Rows", JoinKind.LeftOuter),&lt;BR /&gt;#"Expanded Grouped Rows" = Table.ExpandTableColumn(#"Merged Queries", "Grouped Rows", {"Max"}, {"Max"}),&lt;BR /&gt;#"Added Custom" = Table.AddColumn(#"Expanded Grouped Rows", "Custom", each if [Max]&amp;gt;[Min] then [Max]-[Min] else 0)&lt;BR /&gt;in&lt;BR /&gt;#"Added Custom"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If this post is useful to help you to solve your issue consider giving the post a thumbs up&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and accepting it as a solution !&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 13:03:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2386287#M61835</guid>
      <dc:creator>serpiva64</dc:creator>
      <dc:date>2022-03-10T13:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: How much time employee(EID) spent with system based on login and logout time.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2386386#M61842</link>
      <description>&lt;P&gt;i tried as a measure but no luck@&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/317289" target="_self"&gt;&lt;SPAN class=""&gt;tamerj1&lt;/SPAN&gt;&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;below is the output value&amp;nbsp;&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>Thu, 10 Mar 2022 13:41:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2386386#M61842</guid>
      <dc:creator>anjanikumar</dc:creator>
      <dc:date>2022-03-10T13:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: How much time employee(EID) spent with system based on login and logout time.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2386441#M61845</link>
      <description>&lt;P&gt;Just change the data type to Time Short&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 14:00:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2386441#M61845</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-10T14:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: How much time employee(EID) spent with system based on login and logout time.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2387774#M61952</link>
      <description>&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;in calculated column same value is coming in all rows how to rectify this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 05:43:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2387774#M61952</guid>
      <dc:creator>anjanikumar</dc:creator>
      <dc:date>2022-03-11T05:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: How much time employee(EID) spent with system based on login and logout time.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2387845#M61958</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="353167" data-lia-user-login="anjanikumar" class="lia-mention lia-mention-user"&gt;anjanikumar&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You need to create as a measure. Did you download the sample file? Create the measure, then create the table visual the same way as in the sample file.&amp;nbsp;&lt;BR /&gt;If you still need a calculated column, please in the same screeshot above handwrite the expected results of the new calculated column.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 06:19:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2387845#M61958</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-03-11T06:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: How much time employee(EID) spent with system based on login and logout time.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2387857#M61959</link>
      <description>&lt;P&gt;already i have created both(measure and column) but getting same value in all rows ,that is the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Timespent = &lt;/SPAN&gt;&lt;SPAN&gt;MAXX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;filter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Sample'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Sample'[LogStatus]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"False"&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;FORMAT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Sample'[Timestamp]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"yyyy/MM/dd"&lt;/SPAN&gt;&lt;SPAN&gt;)-&lt;/SPAN&gt;&lt;SPAN&gt;MINX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;filter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Sample'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Sample'[LogStatus]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"true"&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;FORMAT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Sample'[Timestamp]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"yyyy/MM/dd"&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;this is calculated column please suggest any modification for that.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 11 Mar 2022 06:25:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2387857#M61959</guid>
      <dc:creator>anjanikumar</dc:creator>
      <dc:date>2022-03-11T06:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: How much time employee(EID) spent with system based on login and logout time.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2388105#M61981</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="353167" data-lia-user-login="anjanikumar" class="lia-mention lia-mention-user"&gt;anjanikumar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a measure to get logged in time, calculated for each EID &amp;amp; each day separately.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Logged In Time = 
SUMX(
    SUMMARIZE('Sample','Sample'[EID], 'Sample'[date]),
    VAR _MinLogin = CALCULATE(MIN('Sample'[time]),'Sample'[SysStatus] = TRUE())
    VAR _MaxLogout = CALCULATE(MAX('Sample'[time]),'Sample'[SysStatus] = FALSE())
    RETURN
    IF(_MinLogin &amp;amp;&amp;amp; _MaxLogout &amp;amp;&amp;amp; _MinLogin &amp;lt; _MaxLogout,
        _MaxLogout - _MinLogin
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The IF condition is checking there's a login time on that day, a logout time and the login is before the logout.&amp;nbsp; If that isn't the case that day is ignored.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 08:24:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-much-time-employee-EID-spent-with-system-based-on-login-and/m-p/2388105#M61981</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2022-03-11T08:24:56Z</dc:date>
    </item>
  </channel>
</rss>

