<?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: Sum of duration times in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-duration-times/m-p/3056838#M105478</link>
    <description>&lt;P&gt;I dont belive ti is as i have only one source that i am getting the data from.&amp;nbsp; I have just checked that and it is still only from one source&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Feb 2023 04:50:58 GMT</pubDate>
    <dc:creator>Littleconfused</dc:creator>
    <dc:date>2023-02-02T04:50:58Z</dc:date>
    <item>
      <title>Sum of duration times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-duration-times/m-p/3054267#M105304</link>
      <description>&lt;P&gt;Very new to Power BI.&amp;nbsp; I have two times, one being entry time and one being exit time.&amp;nbsp; I need to show the total time spent HH:MM for each entry with a total at the bottom of that column.&amp;nbsp; I am aware that you are unable to sum string or text so have two options, looking ofr the best solution.&amp;nbsp; Column [Sum of Duration] is the difference between the two columns in minutes only and column [Duration Times] is the conversion from the data uploaded from the power query that transfers in as decimal time.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is formula used to convert decimal time to hrs and minutes but comes in as a string.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Looking for any solution or if you have a better way to get this done, please help&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 04:53:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-duration-times/m-p/3054267#M105304</guid>
      <dc:creator>Littleconfused</dc:creator>
      <dc:date>2023-02-01T04:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of duration times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-duration-times/m-p/3054599#M105323</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="497840" data-lia-user-login="Littleconfused" class="lia-mention lia-mention-user"&gt;Littleconfused&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please refer tattached sample file with the proposed solution&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Duration Times = 
VAR FirstDay = MIN ( 'Table'[EntryDateTime] )
VAR LastDay = MAX ( 'Table'[EntryDateTime] )
VAR Days = DATEDIFF ( FirstDay, LastDay, DAY )
VAR TimeDuration = 
    FORMAT (
        SUMX ( 
            'Table',
            'Table'[ExitDateTime] - 'Table'[EntryDateTime]
        ),
        "HH:MM"
    )
RETURN
    IF ( 
        HASONEVALUE ( 'Table'[EntryDateTime] ),
        TimeDuration,
        Days &amp;amp; " Days &amp;amp; " &amp;amp; TimeDuration
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Feb 2023 08:15:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-duration-times/m-p/3054599#M105323</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-01T08:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of duration times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-duration-times/m-p/3056483#M105451</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi tamerj1&lt;/P&gt;&lt;P&gt;I copied your formula, below screenshot of mine however i have obviously done something wrong as i get the same number at the end of each line and no total at the bottom.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 01:27:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-duration-times/m-p/3056483#M105451</guid>
      <dc:creator>Littleconfused</dc:creator>
      <dc:date>2023-02-02T01:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of duration times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-duration-times/m-p/3056671#M105464</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="497840" data-lia-user-login="Littleconfused" class="lia-mention lia-mention-user"&gt;Littleconfused&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yea because you have duplicate records. To bbe more specific, you have records that have the same start and end times. I broke that by adding an index column as I don't know what other columns you have. Please explain the meaning of these duplicate records and how would you like to calculate the time in this case.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 02:50:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-duration-times/m-p/3056671#M105464</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-02T02:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of duration times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-duration-times/m-p/3056691#M105465</link>
      <description>&lt;P&gt;the data is entry times and dates and exit times and dates into a business over the last 18 months.&amp;nbsp; We want to be able to select a contractor and see when he has been onsite over this period of time, select a date and see who was on site on that day, select a person and see when they were onsite.&amp;nbsp; With all of the above we want to be able to see total hours as per our selection.&amp;nbsp; We will have contractors onsite for the same period of time due them entering and exiting together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 02:57:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-duration-times/m-p/3056691#M105465</guid>
      <dc:creator>Littleconfused</dc:creator>
      <dc:date>2023-02-02T02:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of duration times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-duration-times/m-p/3056754#M105467</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="497840" data-lia-user-login="Littleconfused" class="lia-mention lia-mention-user"&gt;Littleconfused&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm also dealing with attendance data for our contractors in my company and of course I have similar situation of people entering and leaving at the same time. What do you get when you select one person?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 03:28:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-duration-times/m-p/3056754#M105467</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-02T03:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of duration times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-duration-times/m-p/3056764#M105469</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i filter to one person i get the below.&amp;nbsp; To the left of this i have the name of the person and the company they work for.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have also created the below where i can select by month or week or day and see who is onsite.&amp;nbsp; I just cant get the total to work.&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, 02 Feb 2023 03:36:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-duration-times/m-p/3056764#M105469</guid>
      <dc:creator>Littleconfused</dc:creator>
      <dc:date>2023-02-02T03:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of duration times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-duration-times/m-p/3056808#M105476</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="497840" data-lia-user-login="Littleconfused" class="lia-mention lia-mention-user"&gt;Littleconfused&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any chance that the start and end times columns that you are using in this table are coming from a different (perhaps redundant) table other than Query1? I'm saying that because the result is impossible to get otherwise and because it happens with me before given that the file might contain multiple redundant queries for whatever reasons. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 04:12:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-duration-times/m-p/3056808#M105476</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-02T04:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of duration times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-duration-times/m-p/3056838#M105478</link>
      <description>&lt;P&gt;I dont belive ti is as i have only one source that i am getting the data from.&amp;nbsp; I have just checked that and it is still only from one source&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 04:50:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-duration-times/m-p/3056838#M105478</guid>
      <dc:creator>Littleconfused</dc:creator>
      <dc:date>2023-02-02T04:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of duration times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-duration-times/m-p/3057239#M105508</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="497840" data-lia-user-login="Littleconfused" class="lia-mention lia-mention-user"&gt;Littleconfused&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share the sample file that you're working on?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 08:19:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-duration-times/m-p/3057239#M105508</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-02T08:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of duration times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-duration-times/m-p/3059127#M105620</link>
      <description>&lt;P&gt;It is avery basic file as below.&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, 02 Feb 2023 22:51:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-duration-times/m-p/3059127#M105620</guid>
      <dc:creator>Littleconfused</dc:creator>
      <dc:date>2023-02-02T22:51:38Z</dc:date>
    </item>
  </channel>
</rss>

