<?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: Summary of duration &amp;quot;hh:mm:ss&amp;quot; total value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summary-of-duration-quot-hh-mm-ss-quot-total-value/m-p/1540651#M30314</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp;I ended up using this code, as I had a separate column that showed me the total duration in seconds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Total Duration = VAR TotalSeconds= SUM('UserActivity simple'[DURATION]) VAR Days =TRUNC(TotalSeconds/3600/24) VAR Hors = TRUNC((TotalSeconds-Days*3600*24)/3600) VAR Mins =TRUNC(MOD(TotalSeconds,3600)/60) VAR Secs = MOD(TotalSeconds,60) return IF((Hors + (Days*24))&amp;lt;10,"0"&amp;amp;(Hors + (Days*24)),(Hors + (Days*24)))&amp;amp;":"&amp;amp;IF(Mins&amp;lt;10,"0"&amp;amp;Mins,Mins)&amp;amp;":"&amp;amp;IF(Secs&amp;lt;10,"0"&amp;amp;Secs,Secs)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its weird since it seems not to work with the column that displays duration. How would you like me to share the sample data?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Dec 2020 10:27:25 GMT</pubDate>
    <dc:creator>patkang</dc:creator>
    <dc:date>2020-12-09T10:27:25Z</dc:date>
    <item>
      <title>Summary of duration "hh:mm:ss" total value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summary-of-duration-quot-hh-mm-ss-quot-total-value/m-p/1540498#M30310</link>
      <description>&lt;P&gt;Hi everyone, I am still a novice in PBI and have run into some issues with the duration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to aggregate the amount of time spent per user on a learning platform.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I formated the the data already into duration in the query editor&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In the report tab, I used the following DAX expression to summarize the time spent per user in total&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Duration = FORMAT(SUM('TABLENAME'[DURATION-HMS]),"hh:mm:ss")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;Now it shows me the correct aggregation per user, but the grand total is not correct.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;Thanks in advance, I appreciate your help!&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Dec 2020 09:36:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summary-of-duration-quot-hh-mm-ss-quot-total-value/m-p/1540498#M30310</guid>
      <dc:creator>patkang</dc:creator>
      <dc:date>2020-12-09T09:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Summary of duration "hh:mm:ss" total value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summary-of-duration-quot-hh-mm-ss-quot-total-value/m-p/1540622#M30312</link>
      <description>&lt;P&gt;Found the solution to my problem through the link below.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.pbiusergroup.com/communities/community-home/digestviewer/viewthread?MessageKey=f500113d-799a-43bd-a432-63654ca6c75f&amp;amp;CommunityKey=b35c8468-2fd8-4e1a-8429-322c39fe7110&amp;amp;tab=digestviewer" target="_blank" rel="noopener"&gt;https://www.pbiusergroup.com/communities/community-home/digestviewer/viewthread?MessageKey=f500113d-799a-43bd-a432-63654ca6c75f&amp;amp;CommunityKey=b35c8468-2fd8-4e1a-8429-322c39fe7110&amp;amp;tab=digestviewer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 10:15:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summary-of-duration-quot-hh-mm-ss-quot-total-value/m-p/1540622#M30312</guid>
      <dc:creator>patkang</dc:creator>
      <dc:date>2020-12-09T10:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Summary of duration "hh:mm:ss" total value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summary-of-duration-quot-hh-mm-ss-quot-total-value/m-p/1540636#M30313</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="274537" data-lia-user-login="patkang" class="lia-mention lia-mention-user"&gt;patkang&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It should work for your total as well, what is the expected total?&lt;BR /&gt;&lt;BR /&gt;If you can share some sample data, I will be able to check it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;________________________&lt;/P&gt;&lt;P&gt;If my answer was helpful, please click &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt; to help other members find it useful&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Click on the &lt;STRONG&gt;Thumbs-Up icon &lt;/STRONG&gt;if you like this reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://www.excelfort.com" target="_blank"&gt;&lt;FONT color="blue"&gt;Website&lt;/FONT&gt;&lt;/A&gt; &lt;A href="https://www.youtube.com/channel/UCKwBEguA8IlBubIobaOormg?sub_confirmation=1" target="_blank"&gt;&lt;FONT color="blue"&gt;YouTube&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp; &lt;A href="https://linkedin.com/in/fowmy" target="_blank"&gt;&lt;FONT color="blue"&gt;LinkedIn&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 10:17:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summary-of-duration-quot-hh-mm-ss-quot-total-value/m-p/1540636#M30313</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2020-12-09T10:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Summary of duration "hh:mm:ss" total value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summary-of-duration-quot-hh-mm-ss-quot-total-value/m-p/1540651#M30314</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp;I ended up using this code, as I had a separate column that showed me the total duration in seconds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Total Duration = VAR TotalSeconds= SUM('UserActivity simple'[DURATION]) VAR Days =TRUNC(TotalSeconds/3600/24) VAR Hors = TRUNC((TotalSeconds-Days*3600*24)/3600) VAR Mins =TRUNC(MOD(TotalSeconds,3600)/60) VAR Secs = MOD(TotalSeconds,60) return IF((Hors + (Days*24))&amp;lt;10,"0"&amp;amp;(Hors + (Days*24)),(Hors + (Days*24)))&amp;amp;":"&amp;amp;IF(Mins&amp;lt;10,"0"&amp;amp;Mins,Mins)&amp;amp;":"&amp;amp;IF(Secs&amp;lt;10,"0"&amp;amp;Secs,Secs)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its weird since it seems not to work with the column that displays duration. How would you like me to share the sample data?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 10:27:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summary-of-duration-quot-hh-mm-ss-quot-total-value/m-p/1540651#M30314</guid>
      <dc:creator>patkang</dc:creator>
      <dc:date>2020-12-09T10:27:25Z</dc:date>
    </item>
  </channel>
</rss>

