<?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: Incorrect Total time in hh:mm:ss Format in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Total-time-in-hh-mm-ss-Format/m-p/3331702#M124870</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="588982" data-lia-user-login="Akhil008" class="lia-mention lia-mention-user"&gt;Akhil008&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry did not clarify the solution. The integer in the TotalSeconds variable shall be simply replaced with sum of the time in seconds column.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2023 18:34:13 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-07-14T18:34:13Z</dc:date>
    <item>
      <title>Incorrect Total time in hh:mm:ss Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Total-time-in-hh-mm-ss-Format/m-p/3330573#M124797</link>
      <description>&lt;P&gt;I'm trying to calculate the sum of time using the below formula but unable to get the desired result because the dax is not able to convert 00:00:00 to 12:00:00. I even tried converting the column to the 12hr format but still unable to achieve the result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Formula:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Login= &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var TotalTime=SumX( &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;hours(data[logintime]) + Divide(minute(data[logintime]),60) +Divide(second(data[logintime]),3600) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var days=Divide(TotalTime,24) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var Hours=(days)*24&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var HoursInt=Trunc(Hours) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var Minutes=(Hours - HoursInt)*60&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;var MinutesInt=Trunc(Minutes)&lt;/P&gt;&lt;P&gt;var Seconds=Round ((Minutes-MinutesInt)*60,0)&lt;/P&gt;&lt;P&gt;Return&lt;/P&gt;&lt;P&gt;Format(HoursInt,"00")&amp;amp;"h,"&amp;amp; Format(MinutesInt, "00")&amp;amp;"m,"&amp;amp;Format(Seconds, "00")&amp;amp;"s"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 05:00:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Total-time-in-hh-mm-ss-Format/m-p/3330573#M124797</guid>
      <dc:creator>Akhil008</dc:creator>
      <dc:date>2023-07-14T05:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Total time in hh:mm:ss Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Total-time-in-hh-mm-ss-Format/m-p/3330780#M124808</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="588982" data-lia-user-login="Akhil008" class="lia-mention lia-mention-user"&gt;Akhil008&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Why do you want to sum the time? What does that mean?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 06:59:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Total-time-in-hh-mm-ss-Format/m-p/3330780#M124808</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-07-14T06:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Total time in hh:mm:ss Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Total-time-in-hh-mm-ss-Format/m-p/3331594#M124857</link>
      <description>&lt;P&gt;Hi, I want to calculate the total login time for the agents. I have a column that have login time in seconds and I've transformed the&amp;nbsp; column in hh:mm:ss and now I want the sum of hours ,minutes and seconds in the format hh:mm:ss&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 16:53:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Total-time-in-hh-mm-ss-Format/m-p/3331594#M124857</guid>
      <dc:creator>Akhil008</dc:creator>
      <dc:date>2023-07-14T16:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Total time in hh:mm:ss Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Total-time-in-hh-mm-ss-Format/m-p/3331642#M124859</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="588982" data-lia-user-login="Akhil008" class="lia-mention lia-mention-user"&gt;Akhil008&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Login =
VAR TotalSeconds = 263117
VAR Seconds =
    MOD ( TotalSeconds, 60 )
VAR TotalMinutes =
    QUOTIENT ( TotalSeconds, 60 )
VAR Minutes =
    MOD ( TotalMinutes, 60 )
VAR TotalHours =
    QUOTIENT ( TotalMinutes, 60 )
VAR Hours =
    MOD ( TotalHours, 24 )
VAR Days =
    QUOTIENT ( TotalHours, 24 ) -- just in case required
RETURN
    FORMAT ( Hours, "00" ) &amp;amp; "h,"
        &amp;amp; FORMAT ( Minutes, "00" ) &amp;amp; "m,"
        &amp;amp; FORMAT ( Seconds, "00" ) &amp;amp; "s"&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 14 Jul 2023 17:34:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Total-time-in-hh-mm-ss-Format/m-p/3331642#M124859</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-07-14T17:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Total time in hh:mm:ss Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Total-time-in-hh-mm-ss-Format/m-p/3331702#M124870</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="588982" data-lia-user-login="Akhil008" class="lia-mention lia-mention-user"&gt;Akhil008&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry did not clarify the solution. The integer in the TotalSeconds variable shall be simply replaced with sum of the time in seconds column.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 18:34:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-Total-time-in-hh-mm-ss-Format/m-p/3331702#M124870</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-07-14T18:34:13Z</dc:date>
    </item>
  </channel>
</rss>

