<?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: Calculate Hours logged but exclude any overlapping time stamps in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/3057937#M105557</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="215688" data-lia-user-login="ryan_b_fiting" class="lia-mention lia-mention-user"&gt;ryan_b_fiting&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Hours Logged Corrected Seconds 1 =
VAR CurrentStart = timeentry[timeStart]
VAR CurrentEnd = timeentry[timeEnd]
VAR CurrentID = timeentry[id]
VAR CurrentEmpolyeeTable =
    CALCULATETABLE (
        timeentry,
        ALLEXCEPT (
            timeentry,
            timeentry[company_id],
            timeentry[member_id],
            timeentry[Start Date]
        )
    )
VAR PreviousRecords =
    FILTER ( CurrentEmpolyeeTable, timeentry[timeStart] &amp;lt;= CurrentStart )
VAR CurrentStatEndTable =
    FILTER (
        PreviousRecords,
        timeentry[timeStart] = CurrentStart
            &amp;amp;&amp;amp; timeentry[timeEnd] = CurrentEnd
    )
VAR BreakTieStart =
    FILTER ( PreviousRecords, timeentry[timeEnd] &amp;lt; CurrentEnd )
VAR BreakTieStartEnd =
    FILTER (
        PreviousRecords,
        timeentry[timeEnd] &amp;lt;= CurrentEnd
            &amp;amp;&amp;amp; timeentry[id] &amp;lt; CurrentID
    )
VAR PreviousEnd1 =
    MAXX ( BreakTieStart, timeentry[timeEnd] )
VAR PreviousEnd2 =
    MAXX ( BreakTieStartEnd, timeentry[timeEnd] )
VAR PreviousEnd =
    IF ( COUNTROWS ( CurrentStatEndTable ) = 1, PreviousEnd1, PreviousEnd2 )
VAR Starting =
    MAX ( CurrentStart, PreviousEnd )
VAR Ending =
    MAX ( CurrentEnd, PreviousEnd )
VAR Result =
    DATEDIFF ( Starting, Ending, SECOND ) / 3600
RETURN
    Result&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 02 Feb 2023 13:32:51 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-02-02T13:32:51Z</dc:date>
    <item>
      <title>Calculate Hours logged but exclude any overlapping time stamps</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/2649058#M78051</link>
      <description>&lt;P&gt;Hi Community -&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am in need of some help on how to calculate total hours logged, but excluding time stamps that are overlapping by employee.&amp;nbsp; Here is a sample of the data:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;ticket_id&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Employee&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;company_name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;timeStart&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;timeEnd&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Hours Logged&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;82220&lt;/TD&gt;&lt;TD&gt;55465&lt;/TD&gt;&lt;TD&gt;Company ABX&lt;/TD&gt;&lt;TD&gt;7/5/2022 12:00&lt;/TD&gt;&lt;TD&gt;7/5/2022 20:00&lt;/TD&gt;&lt;TD&gt;8.0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;82220&lt;/TD&gt;&lt;TD&gt;55465&lt;/TD&gt;&lt;TD&gt;Company ABX&lt;/TD&gt;&lt;TD&gt;7/5/2022 14:00&lt;/TD&gt;&lt;TD&gt;7/5/2022 19:00&lt;/TD&gt;&lt;TD&gt;5.0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I just SUM the hours here I get 13 hours, but the actual result I would want to see is 8 hours, because the entire 5 time log of the second row is overlapping the first log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a DAX measure that could do this so that I will not include any of the overlapping time stamps in my Hours Logged Calculation?&amp;nbsp; Note that these are not only perfect round hour overlaps, but also minutes and seconds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated as this is a time sensitive matter.&lt;/P&gt;&lt;P&gt;Thanks Community!&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 03:01:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/2649058#M78051</guid>
      <dc:creator>ryan_b_fiting</dc:creator>
      <dc:date>2022-07-20T03:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Hours logged but exclude any overlapping time stamps</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/2649121#M78055</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="215688" data-lia-user-login="ryan_b_fiting" class="lia-mention lia-mention-user"&gt;ryan_b_fiting&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;Create a new column and use that&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;var _next = minx(filter(Table, [Employee] = earlier([Employee]) &amp;amp;&amp;amp; [ticket_id] = earlier([ticket_id]) &amp;amp;&amp;amp; [timeStart] &amp;gt; earlier([timeStart]) ),[timeStart])&lt;BR /&gt;return&lt;BR /&gt;if(_next &amp;lt; [timeEnd], _next , [timeEnd])&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 03:37:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/2649121#M78055</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-07-20T03:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Hours logged but exclude any overlapping time stamps</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/2650460#M78113</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="215688" data-lia-user-login="ryan_b_fiting" class="lia-mention lia-mention-user"&gt;ryan_b_fiting&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please refer to sample file with the proposed solution&amp;nbsp;&lt;A href="https://www.dropbox.com/t/NBrrtiTnvplw3Ess" target="_blank" rel="noopener"&gt;https://www.dropbox.com/t/NBrrtiTnvplw3Ess&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This solution is based on hour granularity. If this is the case also with the real data then it should work. A date column is created first for better accuracy and performance. I know there must be some cases where it won't work and I already have ideas how to overcome these difficulties but first I need you to please test it on your real data and return back to me with all the issues so I don't do unnecessary&amp;nbsp;confusing code. I can also adjust the code to accommodate&amp;nbsp;more than two records per employee per date. Little&amp;nbsp;more details about the structure of your data would also be greatly helpful to tweak&amp;nbsp;and optimize the code.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;PRE&gt;Hours Logged Corrected = 
VAR CurrentStart = TimeSheet[timeStart]
VAR CurrentEnd = TimeSheet[timeEnd]
VAR CurrentEmpolyeeTable = 
    CALCULATETABLE ( 
        TimeSheet, 
        ALLEXCEPT ( TimeSheet, TimeSheet[company_name], TimeSheet[Employee], TimeSheet[Date] ) 
    )
VAR PreviousRecords = FILTER ( CurrentEmpolyeeTable, TimeSheet[timeStart] &amp;lt; CurrentStart )
VAR PreviousStart = MAXX ( PreviousRecords, TimeSheet[timeStart] )
VAR PreviousRecord = FILTER ( PreviousRecords, TimeSheet[timeStart] = PreviousStart )
VAR PreviousEnd = MAXX ( PreviousRecord, TimeSheet[timeEnd] )
VAR PreviousStart1 = COALESCE ( PreviousStart, CurrentStart )
VAR PreviousEnd1 = COALESCE ( PreviousEnd, CurrentEnd )
VAR CurrentPeriod = GENERATESERIES ( HOUR ( CurrentStart ), HOUR ( CurrentEnd ), 1 )
VAR PreviousPeriod = GENERATESERIES ( HOUR ( PreviousStart1 ), HOUR ( PreviousEnd1 ), 1 )
RETURN
 IF ( 
    ISEMPTY ( PreviousRecords ),
    DATEDIFF ( CurrentStart, CurrentEnd, HOUR ),
    COUNTROWS ( EXCEPT ( CurrentPeriod, PreviousPeriod ) )
 )&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 13:03:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/2650460#M78113</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-20T13:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Hours logged but exclude any overlapping time stamps</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/2650559#M78116</link>
      <description>&lt;P&gt;Thanks &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp; for the response.&amp;nbsp; Unfortunately this does not work.&amp;nbsp; I get an error:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I also need this in seconds (and then divided by 3600 so I do not only have full rounded hours.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 13:28:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/2650559#M78116</guid>
      <dc:creator>ryan_b_fiting</dc:creator>
      <dc:date>2022-07-20T13:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Hours logged but exclude any overlapping time stamps</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/2650594#M78119</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="215688" data-lia-user-login="ryan_b_fiting" class="lia-mention lia-mention-user"&gt;ryan_b_fiting&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;This is a calculated column not a measure. Please create a new&amp;nbsp;calculated column. It can be adjusted to a measure if needed but I guess there is no necessity&amp;nbsp;for that. Also please clarify further the "Seconds" and provide more details. Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 13:38:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/2650594#M78119</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-20T13:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Hours logged but exclude any overlapping time stamps</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/2650608#M78121</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="215688" data-lia-user-login="ryan_b_fiting" class="lia-mention lia-mention-user"&gt;ryan_b_fiting&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One more question cause I'm wondering if I over complicated the issue, do you want to completely delete the repeated record or you want to deduct the over laping period out of it? as this is what my code does.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 13:46:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/2650608#M78121</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-20T13:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Hours logged but exclude any overlapping time stamps</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/2650641#M78122</link>
      <description>&lt;P&gt;I want to just exclude the overlapping time.&amp;nbsp; I need the total time to initially be in seconds, and then adjust it to hours by dividing by 3600 to get partial hours.&amp;nbsp; Not all time entries are exact hours.&lt;/P&gt;&lt;P&gt;Also, I have adjusted this to a calculated column, but the performance on it takes a big hit.&amp;nbsp; My current table is about 200k entries and growing.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 14:00:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/2650641#M78122</guid>
      <dc:creator>ryan_b_fiting</dc:creator>
      <dc:date>2022-07-20T14:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Hours logged but exclude any overlapping time stamps</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/2650711#M78128</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="215688" data-lia-user-login="ryan_b_fiting" class="lia-mention lia-mention-user"&gt;ryan_b_fiting&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;This should be much faster&amp;nbsp;&lt;A href="https://www.dropbox.com/t/TdSh89Eo4HIuvQ1R" target="_blank"&gt;https://www.dropbox.com/t/TdSh89Eo4HIuvQ1R&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Hours Logged Corrected Seconds 1 = 
VAR CurrentStart = TimeSheet[timeStart]
VAR CurrentEnd = TimeSheet[timeEnd]
VAR CurrentEmpolyeeTable = 
    CALCULATETABLE ( 
        TimeSheet, 
        ALLEXCEPT ( TimeSheet, TimeSheet[company_name], TimeSheet[Employee], TimeSheet[Date] ) 
    )
VAR PreviousRecords = FILTER ( CurrentEmpolyeeTable, TimeSheet[timeStart] &amp;lt; CurrentStart )
VAR PreviousStart = MINX ( PreviousRecords, TimeSheet[timeStart] )
VAR PreviousEnd = MAXX ( PreviousRecords, TimeSheet[timeEnd] )
VAR Starting = MAX ( CurrentStart, PreviousEnd )
VAR Ending = MAX ( CurrentEnd, PreviousEnd )
RETURN
    DATEDIFF ( Starting, Ending, SECOND ) / 3600&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Jul 2022 14:22:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/2650711#M78128</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-20T14:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Hours logged but exclude any overlapping time stamps</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/2650761#M78131</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;this is faster, a little slow still, but it may be due to being on my clients RD connection.&lt;/P&gt;&lt;P&gt;It also appears that the calc is working as expected after testing a handful of entries!&amp;nbsp; Thank you so much for your consistent communication!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 14:42:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/2650761#M78131</guid>
      <dc:creator>ryan_b_fiting</dc:creator>
      <dc:date>2022-07-20T14:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Hours logged but exclude any overlapping time stamps</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/2701667#M81800</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;this is working great, I am just running into one snag.&amp;nbsp; When the timestart has the exact same time stamp, the corrected hours are not showing it as having overlap.&amp;nbsp; See the image below (the first 2 lines....line 2 should have 0.33 hours as overlap and Corrected Hours should =0).&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to tinker with the logic, but cannot get the solution I am looking for.&amp;nbsp; Any help would be tremendously appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 03:13:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/2701667#M81800</guid>
      <dc:creator>ryan_b_fiting</dc:creator>
      <dc:date>2022-08-16T03:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Hours logged but exclude any overlapping time stamps</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/3051205#M105098</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;I just wanted to reach out on this again as I am still having the small issue with the overlapping time if the timestart is the exact same time stamp.&amp;nbsp; I have tried multiple different things, but cannot find a solution.&amp;nbsp; Any idea on how to adjust the current calculated column above to account for the timestamps that are identical in the timestart column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any advice!&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 21:26:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/3051205#M105098</guid>
      <dc:creator>ryan_b_fiting</dc:creator>
      <dc:date>2023-01-30T21:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Hours logged but exclude any overlapping time stamps</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/3051727#M105137</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="215688" data-lia-user-login="ryan_b_fiting" class="lia-mention lia-mention-user"&gt;ryan_b_fiting&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Somehow I missed your reply. Apologies for not responding earlier.&lt;/P&gt;
&lt;P&gt;I can see that you are not including the Company Name in the ALLEXCEPT function as proposed by my code. Any logic behind that?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 05:22:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/3051727#M105137</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-01-31T05:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Hours logged but exclude any overlapping time stamps</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/3051748#M105138</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;no problem. Thanks for the response now.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I excluded it only because it did not change the output whether it was included or not when I first tested it.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Just trying to wrap my head around why the overlap will not work on exact same start times. I've tried using an index, time start ranking column, &amp;gt;= operator but no luck.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 05:41:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/3051748#M105138</guid>
      <dc:creator>ryan_b_fiting</dc:creator>
      <dc:date>2023-01-31T05:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Hours logged but exclude any overlapping time stamps</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/3051869#M105147</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="215688" data-lia-user-login="ryan_b_fiting" class="lia-mention lia-mention-user"&gt;ryan_b_fiting&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you still have the same problem when you include company name in ALLEXCEPT&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 06:55:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/3051869#M105147</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-01-31T06:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Hours logged but exclude any overlapping time stamps</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/3053285#M105242</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;yes I do.&amp;nbsp; I get the same results whether the Company Name is in there or not.&amp;nbsp; Everything is working with the exception of the lines with the exact same timestart.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 16:46:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/3053285#M105242</guid>
      <dc:creator>ryan_b_fiting</dc:creator>
      <dc:date>2023-01-31T16:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Hours logged but exclude any overlapping time stamps</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/3053327#M105244</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="215688" data-lia-user-login="ryan_b_fiting" class="lia-mention lia-mention-user"&gt;ryan_b_fiting&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ok. What was the number of the sample file I shared with you? Preferably if you update the data to include the case of the same start time. Let me work on it&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 16:59:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/3053327#M105244</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-01-31T16:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Hours logged but exclude any overlapping time stamps</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/3056345#M105442</link>
      <description>&lt;P&gt;I'm not sure what the number was. But I do believe the sample has 2 items with same start time. I will try to upload a PBIX file with dummy data if needed. Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 23:10:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/3056345#M105442</guid>
      <dc:creator>ryan_b_fiting</dc:creator>
      <dc:date>2023-02-01T23:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Hours logged but exclude any overlapping time stamps</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/3056646#M105463</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="215688" data-lia-user-login="ryan_b_fiting" class="lia-mention lia-mention-user"&gt;ryan_b_fiting&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes please do&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 02:41:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/3056646#M105463</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-02T02:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Hours logged but exclude any overlapping time stamps</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/3056749#M105466</link>
      <description>&lt;P&gt;&lt;A title="Overlapping Time Sample" href="https://www.dropbox.com/s/fpedqdrpge2zi44/Overlap%20Sample.pbix?dl=0" target="_blank" rel="noopener"&gt;Overlapping Time Sample&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is the link to the PBIX file.&amp;nbsp; I only have a subset of the data in there from one table (only table being used for this issue).&amp;nbsp; Let me know if you need the xlsx used for the sample data.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 03:24:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/3056749#M105466</guid>
      <dc:creator>ryan_b_fiting</dc:creator>
      <dc:date>2023-02-02T03:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Hours logged but exclude any overlapping time stamps</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/3057227#M105506</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="215688" data-lia-user-login="ryan_b_fiting" class="lia-mention lia-mention-user"&gt;ryan_b_fiting&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;It more than just having same starting datetime. I was able to solve the duplicate start datetime easily. I Also solved the problem where both Start and End DateTimes are exactly the same for two records. However, I found out that your data is much more complex than this. In some cases where the time extends over two days (see below example). The current solution is comparing only the records that have the same start date but this example proofs that this is not going to work.&lt;/P&gt;
&lt;P&gt;Finding&amp;nbsp;a solution for such complex cases requires a lot of time and concentration which unfortunately I don't have right now. I will work on it perhaps&amp;nbsp;at weekend.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 08:16:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Hours-logged-but-exclude-any-overlapping-time-stamps/m-p/3057227#M105506</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-02T08:16:57Z</dc:date>
    </item>
  </channel>
</rss>

