<?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: formatting time value to hh:mm:ss in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/3402229#M44122</link>
    <description>&lt;P&gt;Thanks you! I have just updated a little bit your code to use IT in SSAS :&lt;/P&gt;&lt;P&gt;=FORMAT(INT( IF(MOD(('WEBSITES KPI'[Temps_passé]/1000),60)=60,0,MOD(('WEBSITES KPI'[Temps_passé]/1000),60)) + IF(MOD(INT(('WEBSITES KPI'[Temps_passé]/1000)/60),60)=60,0,MOD(INT(('WEBSITES KPI'[Temps_passé]/1000)/60),60)*100) + INT(('WEBSITES KPI'[Temps_passé]/1000)/3600)*10000), "00:00:00")&lt;/P&gt;&lt;P&gt;It's working fine for me &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; !&lt;/P&gt;&lt;P&gt;I have divided by 1000 because I have the duration in milisecondes.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Aug 2023 12:48:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-28T12:48:46Z</dc:date>
    <item>
      <title>formatting time value to hh:mm:ss</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/85249#M3010</link>
      <description>&lt;P&gt;I hope I am posting this to the right location as I am developing a new report.&amp;nbsp; Anyway, this is coming out of our telephone DB system and one column represented is Duration, which is an int column and represents the call in the number of seconds.&amp;nbsp; I would like to convert and format that to HH:MM:SS.&amp;nbsp; Would something like this work, or is there a better way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New Duration = FORMAT(TableName[Duration]/60, "HH:mm:ss")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 18:43:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/85249#M3010</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-02T18:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: formatting time value to hh:mm:ss</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/85264#M3012</link>
      <description>&lt;P&gt;Hi, you are just returning the minutes, you must return the entire number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;New Duration&lt;/SPAN&gt; = format(((&lt;SPAN&gt;TableName&lt;/SPAN&gt;[&lt;SPAN&gt;Duration&lt;/SPAN&gt;] / 60)/60)/24, "HH:mm:ss")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 19:09:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/85264#M3012</guid>
      <dc:creator>jbocachica</dc:creator>
      <dc:date>2016-11-02T19:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: formatting time value to hh:mm:ss</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/85265#M3013</link>
      <description>&lt;P&gt;The column value from SQL is an integer in the number of seconds so wouldnt / 60 return how many minutes, seconds, etc (except now I know what you are saying whereas if the number of minutes is more than 60).&amp;nbsp; However, I get an error when trying to use FORMAT for the column in that FORMAT cannot be used with a calculated column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="11-2-2016 3-12-55 PM.png" style="width: 536px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/18491i46135FBDDEF4F15C/image-size/large?v=v2&amp;amp;px=999" role="button" title="11-2-2016 3-12-55 PM.png" alt="11-2-2016 3-12-55 PM.png" /&gt;&lt;/span&gt;&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;&lt;P&gt;I also found this article: &lt;A href="http://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486" target="_blank"&gt;http://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 19:13:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/85265#M3013</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-02T19:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: formatting time value to hh:mm:ss</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/85290#M3017</link>
      <description>&lt;P&gt;Hi, you must go to Options and then find the DirectQuery options and enable the checkbox that says "Allow unrestricted measures in DirectQuery mode" and try again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 19:48:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/85290#M3017</guid>
      <dc:creator>jbocachica</dc:creator>
      <dc:date>2016-11-02T19:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: formatting time value to hh:mm:ss</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/85567#M3025</link>
      <description>&lt;P&gt;Unfortunately that did not work.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 11:48:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/85567#M3025</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-03T11:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: formatting time value to hh:mm:ss</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/85662#M3026</link>
      <description>Uhhh... which kind of datasource are you using?&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Nov 2016 14:42:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/85662#M3026</guid>
      <dc:creator>jbocachica</dc:creator>
      <dc:date>2016-11-03T14:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: formatting time value to hh:mm:ss</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/85766#M3028</link>
      <description>&lt;P&gt;Straight up SQL Server data table.&amp;nbsp; Nothing special at all.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 17:56:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/85766#M3028</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-03T17:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: formatting time value to hh:mm:ss</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/86352#M3060</link>
      <description>Well, to use certain functions you must Import your data and not use Direct Query &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Nov 2016 21:17:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/86352#M3060</guid>
      <dc:creator>jbocachica</dc:creator>
      <dc:date>2016-11-04T21:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: formatting time value to hh:mm:ss</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/86617#M3064</link>
      <description>&lt;P&gt;@Anonymous﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try a DAX as below.&lt;/P&gt;
&lt;PRE&gt;fmtCol = 
RIGHT ( "0" &amp;amp; INT ( TableName[Duration] / 3600 ), 2 )
    &amp;amp; ":"
    &amp;amp; RIGHT (
        "0"
            &amp;amp; INT ( ( TableName[Duration] - INT (TableName[Duration] / 3600 ) * 3600 ) / 60 ),
        2
    )
    &amp;amp; ":"
    &amp;amp; RIGHT ( "0" &amp;amp; MOD (TableName[Duration], 3600 ), 2 )&lt;/PRE&gt;
&lt;P&gt;Or deal with the format in query.&lt;/P&gt;
&lt;PRE&gt;select Duration, convert(varchar(10),DATEADD(second,Duration,0),108) fmtSecs from t1&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/18863i3444E43DF5CF9815/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;﻿&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 07:54:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/86617#M3064</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2016-11-07T07:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: formatting time value to hh:mm:ss</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/149693#M5092</link>
      <description>&lt;P&gt;I'm pretty new to DAX so it's possible that I'm doing something wrong, but your code was calculating the incorrect seconds for me&amp;nbsp;and I made the following changes to get it to work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;fmtCol = &lt;BR /&gt;RIGHT ( "0" &amp;amp; INT ( TableName[Duration]/ 3600 ), 2 )
    &amp;amp; ":"
    &amp;amp; RIGHT (
        "0"
            &amp;amp; INT ( (TableName[Duration]- INT (TableName[Duration]/ 3600 ) * 3600 ) / 60 ),
        2
    )
    &amp;amp; ":"
    &lt;STRONG&gt;&amp;amp; RIGHT ( "0" &amp;amp; INT(MOD(MOD (TableName[Duration], 3600),60)), 2 )&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 20:30:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/149693#M5092</guid>
      <dc:creator>tmilu</dc:creator>
      <dc:date>2017-03-27T20:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: formatting time value to hh:mm:ss</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/157189#M5307</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!! You are officially&amp;nbsp;a legend =D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Worked really well to convert seconds into time format from a calculation in a measure!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be honest, there is a big lack of time formatting options in Power BI, I would love to see a function that would allow us to display time as a total number of hours like in Excel that would make life so much easier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but anyway rant is over =D thanks again!!!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 11:14:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/157189#M5307</guid>
      <dc:creator>Abduvali</dc:creator>
      <dc:date>2017-04-11T11:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: formatting time value to hh:mm:ss</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/157942#M5321</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your code for Power&amp;nbsp;BI solution works well... the only issue Minutes displayed out of 100 min and not as standard 60 min =o?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Abduvali&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 13:20:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/157942#M5321</guid>
      <dc:creator>Abduvali</dc:creator>
      <dc:date>2017-04-12T13:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: formatting time value to hh:mm:ss</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/376653#M11204</link>
      <description>&lt;P&gt;Had a question about D:HH:MM:SS, hopefully this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dtime (meas) = 
VAR vDur = &amp;lt;&amp;lt;enter object as seconds&amp;gt;&amp;gt;
    RETURN INT(vDur/86400) &amp;amp; ":" &amp;amp;                       //Days
	RIGHT("0" &amp;amp; INT(MOD(vDur/3600,24)),2) &amp;amp; ":" &amp;amp;    //Hours 
	RIGHT("0" &amp;amp; INT(MOD(vDur/60,60)),2) &amp;amp; ":" &amp;amp;      //Minutes
	RIGHT("0" &amp;amp; INT(MOD(vDur,60)),2)                 //Seconds&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Mar 2018 06:10:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/376653#M11204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-15T06:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: formatting time value to hh:mm:ss</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/389764#M11580</link>
      <description>&lt;P&gt;Hi, this post is in spanish but will be helpful in this case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blog.iwco.co/2018/03/28/formato-duracion-power-bi/" target="_blank"&gt;http://blog.iwco.co/2018/03/28/formato-duracion-power-bi/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 16:58:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/389764#M11580</guid>
      <dc:creator>jbocachica</dc:creator>
      <dc:date>2018-04-04T16:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: formatting time value to hh:mm:ss</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/417914#M12442</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;&lt;BR /&gt;Hello I was able to create the DAX as a calculated column not a measure when creating as a measure I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"A single value for column duration in table dialingresults cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Either way when I use the code provided:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Time =&lt;BR /&gt;RIGHT ( "0" &amp;amp; INT ( DialingResults[Duration]/ 3600 ), 2 )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp; ":"&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;amp; RIGHT (&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; "0"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;amp; INT ( (DialingResults [Duration]- INT (DialingResults [Duration]/ 3600 ) * 3600 ) / 60 ),&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;amp; ":"&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;&amp;amp; RIGHT ( "0" &amp;amp; INT(MOD(MOD (&lt;/STRONG&gt;DialingResults&lt;STRONG&gt; [Duration], 3600),60)), 2 )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is giving me mis-calculations see attached image.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5-15-2018 12-30-50 PM.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/96172i5A36B5EE8E9E561B/image-size/large?v=v2&amp;amp;px=999" role="button" title="5-15-2018 12-30-50 PM.png" alt="5-15-2018 12-30-50 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 17:04:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/417914#M12442</guid>
      <dc:creator>bizzybisnette</dc:creator>
      <dc:date>2018-05-15T17:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: formatting time value to hh:mm:ss</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/437934#M13515</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also experiencing this, have you found any solution for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 14:11:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/437934#M13515</guid>
      <dc:creator>Mk2018</dc:creator>
      <dc:date>2018-06-12T14:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: formatting time value to hh:mm:ss</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/490697#M15036</link>
      <description>&lt;P&gt;Guys I think I got it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need a field that is just seconds and use this code as a measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Time = FORMAT(INT(&lt;/P&gt;&lt;P&gt;IF(MOD([Seconds]|60)=60|0|MOD([Seconds]|60)) +&lt;/P&gt;&lt;P&gt;IF(MOD(INT([Seconds]/60)|60)=60|0|MOD(INT([Seconds]/60)|60)*100) +&lt;/P&gt;&lt;P&gt;INT([Seconds]/3600)*10000)| "00:00:00")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seconds = the field that contains seconds.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 21:33:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/490697#M15036</guid>
      <dc:creator>bizzybisnette</dc:creator>
      <dc:date>2018-08-15T21:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: formatting time value to hh:mm:ss</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/491350#M15054</link>
      <description>&lt;P&gt;just a click on a translate button and this is so helpful thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: use&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/129"&gt;@jbocachica&lt;/a&gt;suggested website, if you want to convert from seconds to this format HH:mm:ss, I used the following expression using DAX. I just created a new measure using the existing measure in seconds, because my seconds rae in a measure not a column, well I am getting my Data from Analysis Services.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure :=&amp;nbsp; FORMAT(FactTable[MeasureName in seconds]/86400, "HH:mm:ss")&amp;nbsp;&lt;/P&gt;&lt;P&gt;By magic you have it in one single line haha.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Read about Format Function here ==&amp;gt;&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-us/query-bi/dax/format-function-dax" target="_blank"&gt;https://msdn.microsoft.com/en-us/query-bi/dax/format-function-dax&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 10:37:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/491350#M15054</guid>
      <dc:creator>ydaoud</dc:creator>
      <dc:date>2018-08-16T10:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: formatting time value to hh:mm:ss</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/494940#M15149</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I kinda stuck with the similar error when converting the seconds to duration (HH :&amp;nbsp;MM : SS) format using the following query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Select TimeinSeconds, from_unixtime(TimeinSeconds,"HH:mm:ss") as Duration
From Tablename&lt;/PRE&gt;&lt;P&gt;When I execute the above query in Impala, I'm getting the result as expected and the same query when I use to load the data into Power BI, I'm getting this "&lt;STRONG&gt;Token Comma Expected&lt;/STRONG&gt;" error. Can you help me with this, please?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 10:14:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/494940#M15149</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-21T10:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: formatting time value to hh:mm:ss</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/2216378#M33248</link>
      <description>&lt;P&gt;New Duration = FORMAT([Duration], "nn:ss")&lt;BR /&gt;&lt;BR /&gt;mm works only with HH:mm:ss&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See&amp;nbsp;&amp;nbsp;&lt;A href="https://dax.guide/format/" target="_blank"&gt;https://dax.guide/format/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 15:22:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/formatting-time-value-to-hh-mm-ss/m-p/2216378#M33248</guid>
      <dc:creator>dreamon</dc:creator>
      <dc:date>2021-12-01T15:22:59Z</dc:date>
    </item>
  </channel>
</rss>

