<?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: Converting duration value in decimal format to corresponding timeclock value in hh:mm:ss format in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-duration-value-in-decimal-format-to-corresponding/m-p/3672580#M142478</link>
    <description>&lt;P&gt;Hi，&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="683608" data-lia-user-login="FrankValentin" class="lia-mention lia-mention-user"&gt;FrankValentin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm happy to answer your questions. We can extract minutes and seconds using minute, second DAX formula. We can use the following DAX formula to generate a calculated column of hh:mm:ss:&lt;/P&gt;
&lt;P&gt;Sample data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;TTR_NET (hh:mm:ss) column:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TTR_NET (hh:mm:ss) = 
VAR vDurationInHours = 'Sheet4'[SM_TTR_NET]
VAR vDurationInSeconds = vDurationInHours * 3600
VAR vMinutes = INT(vDurationInSeconds / 60)
VAR vRemainingSeconds = MOD(vDurationInSeconds, 60)
VAR vHours = INT(vMinutes / 60)
VAR vRemainingMinutes = MOD(vMinutes, 60)
VAR Duration = TIME(vHours, vRemainingMinutes, vRemainingSeconds)
RETURN FORMAT(Duration, "hh:mm:ss")
&lt;/LI-CODE&gt;
&lt;P&gt;The results are as follows:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;In calculating TTR_NET (hh:mm:ss), your dax formula is correct. Next calculate String TTR_NET (hh:mm:ss)&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
var _min = MINUTE('Sheet4'[TTR_NET (hh:mm:ss)])
var _second = SECOND('Sheet4'[TTR_NET (hh:mm:ss)])
var _hour = MID('Sheet4'[SM_TTR_NET],1,3)
RETURN _hour&amp;amp;":"&amp;amp;_min&amp;amp;":"&amp;amp;_second
&lt;/LI-CODE&gt;
&lt;P&gt;The results are as follows:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;This column is text of type, &lt;STRONG&gt;hh cannot exceed 24&lt;/STRONG&gt; in the standard time format, so this column can only be of text (string) type. In standard hh:mm:ss:&lt;/P&gt;
&lt;P&gt;hh: hh component represents the hour in &lt;STRONG&gt;24-hour&lt;/STRONG&gt; format with a leading zero for hours 0-9&lt;/P&gt;
&lt;P&gt;mm: The mm component represents minutes with a leading zero for minutes 0-9&lt;/P&gt;
&lt;P&gt;ss: The ss component represents seconds with a leading zero for seconds 0-9&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C02%7Cv-jianpengli%40microsoft.com%7Cd9552f18a0c94a7564f308dc188bf35e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638412236574903368%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=3jxUE%2BTNC8dS4DIhPphEB3NA%2BK94pwURGHu%2BXC4eezw%3D&amp;amp;reserved=0" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Jianpeng Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2024 09:38:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-02-01T09:38:04Z</dc:date>
    <item>
      <title>Converting duration value in decimal format to corresponding timeclock value in hh:mm:ss format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-duration-value-in-decimal-format-to-corresponding/m-p/3671314#M142420</link>
      <description>&lt;P&gt;Good morning ALL!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Context&lt;/STRONG&gt;: I have a table which there is a column called “SM_TTR_NET” indicating the duration of activities in a decimal format (example: 256,25 hours). I have then to compare that duration with the “Duration references” below (all format in time clock hh:mm:ss), so I can apply corresponding indicated “Credit %”.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Duration references&lt;BR /&gt;(hh:mm:ss)&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Credit %&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FROM&lt;/TD&gt;&lt;TD&gt;TO&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;00:00:01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;04:00:00&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;04:00:01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;08:00:00&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;10%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;08:00:01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;12:00:00&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;30%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;12:00:01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;24:00:00&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;50%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;24:00:01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;100%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Taking the provided example above as reference,&lt;/P&gt;&lt;P&gt;256,25 decimal hours = 256:15:00 (256 hours : 15 minutes : 0 seconds) in time clock format&lt;/P&gt;&lt;P&gt;I have then created a new column ‘TTR_NET (hh:mm:ss)’ as the result of transforming “SM_TTR_NET” decimal duration values to time clock using the DAX code below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TTR_NET (hh:mm:ss) =
VAR vDurationInHours = TroubleTickets[SM_TTR_NET]
VAR vDurationInSeconds = vDurationInHours * 3600
VAR vMinutes = INT(vDurationInSeconds / 60)
VAR vRemainingSeconds = MOD(vDurationInSeconds, 60)
VAR vHours = INT(vMinutes / 60)
VAR vRemainingMinutes = MOD(vMinutes, 60)
VAR Duration = TIME(vHours, vRemainingMinutes, vRemainingSeconds)
RETURN FORMAT(Duration, "hh:mm:ss")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately the transformation, for some reason, was incorrect - see screenshot below and csv file attached (“data.csv” :&amp;nbsp;&lt;A title="&amp;quot;data.csv&amp;quot; file" href="https://1drv.ms/x/s!ApTpmERKmdn4heNbFPXlpSQaS8FzQw?e=9phTOu" target="_self"&gt;"data.csv" file&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;Instead of getting 256:15:00 as expected, I got 16:15:13 as it has not considered the number of days within 256 hours which is 10 days (10 days * 24 hours = 240 hours) but only the remained hours (16 hours).&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;&lt;P&gt;I have then created another column ‘String TTR_NET (hh:mm:ss)’ using the code below which I finally got the expected value but … in a string format ☹ as you can see above ("256:15:12,999996000086") meaning I cannot use it as not allowed to compare text and time format ☹&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;String TTR_NET (hh:mm:ss) =
VAR vDurationInHours = TroubleTickets[SM_TTR_NET]
VAR vDurationInSeconds = vDurationInHours * 3600
VAR vMinutes = INT(vDurationInSeconds / 60)
VAR vRemainingSeconds = MOD(vDurationInSeconds, 60)
VAR vHours = INT(vMinutes / 60)
VAR vRemainingMinutes = MOD(vMinutes, 60)
RETURN vHours &amp;amp; ":" &amp;amp; vRemainingMinutes &amp;amp; ":" &amp;amp; vRemainingSeconds&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, my last try was to use the code below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TTR_NET timeclock = TIME(
    INT(TroubleTickets[SM_TTR_NET]),
    INT((TroubleTickets[SM_TTR_NET] - INT(TroubleTickets[SM_TTR_NET])) * 60),
    ROUND((((TroubleTickets[SM_TTR_NET] - INT(TroubleTickets[SM_TTR_NET])) * 60) - INT((TroubleTickets[SM_TTR_NET] - INT(TroubleTickets[SM_TTR_NET])) * 60)) * 60, 0)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I got this&lt;/P&gt;&lt;P&gt;256,25 decimal hours = Sat, 30 Dec 1899 16:15:13 (?!?!) ☹&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question&lt;/STRONG&gt;: Could you help me getting the correct format of time as hh:mm:ss from a full duration (taking into consideration the number of hours if &amp;gt;24 hours duration) in decimal format? Meaning, for example, 256,25 hours in decimal converted to 256:15:13 in timeclock format?&lt;BR /&gt;&lt;BR /&gt;Thank you very much in advance for bringing some light to this darkness scenario!&lt;BR /&gt;Frank&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 09:16:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-duration-value-in-decimal-format-to-corresponding/m-p/3671314#M142420</guid>
      <dc:creator>FrankValentin</dc:creator>
      <dc:date>2024-02-01T09:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Converting duration value in decimal format to corresponding timeclock value in hh:mm:ss format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-duration-value-in-decimal-format-to-corresponding/m-p/3672580#M142478</link>
      <description>&lt;P&gt;Hi，&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="683608" data-lia-user-login="FrankValentin" class="lia-mention lia-mention-user"&gt;FrankValentin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm happy to answer your questions. We can extract minutes and seconds using minute, second DAX formula. We can use the following DAX formula to generate a calculated column of hh:mm:ss:&lt;/P&gt;
&lt;P&gt;Sample data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;TTR_NET (hh:mm:ss) column:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TTR_NET (hh:mm:ss) = 
VAR vDurationInHours = 'Sheet4'[SM_TTR_NET]
VAR vDurationInSeconds = vDurationInHours * 3600
VAR vMinutes = INT(vDurationInSeconds / 60)
VAR vRemainingSeconds = MOD(vDurationInSeconds, 60)
VAR vHours = INT(vMinutes / 60)
VAR vRemainingMinutes = MOD(vMinutes, 60)
VAR Duration = TIME(vHours, vRemainingMinutes, vRemainingSeconds)
RETURN FORMAT(Duration, "hh:mm:ss")
&lt;/LI-CODE&gt;
&lt;P&gt;The results are as follows:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;In calculating TTR_NET (hh:mm:ss), your dax formula is correct. Next calculate String TTR_NET (hh:mm:ss)&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
var _min = MINUTE('Sheet4'[TTR_NET (hh:mm:ss)])
var _second = SECOND('Sheet4'[TTR_NET (hh:mm:ss)])
var _hour = MID('Sheet4'[SM_TTR_NET],1,3)
RETURN _hour&amp;amp;":"&amp;amp;_min&amp;amp;":"&amp;amp;_second
&lt;/LI-CODE&gt;
&lt;P&gt;The results are as follows:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;This column is text of type, &lt;STRONG&gt;hh cannot exceed 24&lt;/STRONG&gt; in the standard time format, so this column can only be of text (string) type. In standard hh:mm:ss:&lt;/P&gt;
&lt;P&gt;hh: hh component represents the hour in &lt;STRONG&gt;24-hour&lt;/STRONG&gt; format with a leading zero for hours 0-9&lt;/P&gt;
&lt;P&gt;mm: The mm component represents minutes with a leading zero for minutes 0-9&lt;/P&gt;
&lt;P&gt;ss: The ss component represents seconds with a leading zero for seconds 0-9&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C02%7Cv-jianpengli%40microsoft.com%7Cd9552f18a0c94a7564f308dc188bf35e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638412236574903368%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=3jxUE%2BTNC8dS4DIhPphEB3NA%2BK94pwURGHu%2BXC4eezw%3D&amp;amp;reserved=0" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Jianpeng Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 09:38:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-duration-value-in-decimal-format-to-corresponding/m-p/3672580#M142478</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-01T09:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Converting duration value in decimal format to corresponding timeclock value in hh:mm:ss format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-duration-value-in-decimal-format-to-corresponding/m-p/3672793#M142492</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;. Thank you for your reply. You can refer to&amp;nbsp;&lt;SPAN&gt;(“data.csv” :&amp;nbsp;&lt;/SPAN&gt;&lt;A title="&amp;quot;data.csv&amp;quot; file" href="https://1drv.ms/x/s!ApTpmERKmdn4heNbFPXlpSQaS8FzQw?e=9phTOu" target="_self" rel="nofollow noopener noreferrer"&gt;"data.csv" file&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;) showing the same outputs you got but notice that, for instance, 256,25 hours (duration in decimal format) is different than 16:25:00 duration in timeclock format mainly because, as you have well explained, "&lt;STRONG&gt;hh cannot exceed 24&lt;/STRONG&gt;&amp;nbsp;in the standard time format". So my problem remains unsolved &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My final goal is: finding a way to compare my duration time in decimal format (from column “SM_TTR_NET”) with the time range ("TO" from the table below) in&amp;nbsp;standard time format hh:mm:ss so I know which Credit% I need to apply?&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Would then be better (due to this limitation of " "&lt;STRONG&gt;hh cannot exceed 24&lt;/STRONG&gt;&amp;nbsp;in the standard time format") to do other way around and finally convert the table below to decimal format (for instance, "TO" 04:00:00 -&amp;gt; 4,00) so I compare it with the duration time also in decimal format from column “SM_TTR_NET” ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Duration references&lt;BR /&gt;(hh:mm:ss)&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Credit %&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FROM&lt;/TD&gt;&lt;TD&gt;TO&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;00:00:01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;04:00:00&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;04:00:01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;08:00:00&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;10%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;08:00:01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;12:00:00&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;30%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;12:00:01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;24:00:00&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;50%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;24:00:01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;100%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see the results I got below in the attached csv file&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;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 11:14:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-duration-value-in-decimal-format-to-corresponding/m-p/3672793#M142492</guid>
      <dc:creator>FrankValentin</dc:creator>
      <dc:date>2024-02-01T11:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Converting duration value in decimal format to corresponding timeclock value in hh:mm:ss format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-duration-value-in-decimal-format-to-corresponding/m-p/3673082#M142510</link>
      <description>&lt;P&gt;Sorry, I have noticed I havent replied to your message - here it goes.&lt;BR /&gt;&lt;BR /&gt;***********************&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hi&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/672224" target="_blank" rel="noopener"&gt;@v-jianpeng-msft&lt;/A&gt;&amp;nbsp;. Thank you for your reply. You can refer to&amp;nbsp;&lt;SPAN&gt;(“data.csv” :&amp;nbsp;&lt;/SPAN&gt;&lt;A title="&amp;quot;data.csv&amp;quot; file" href="https://1drv.ms/x/s!ApTpmERKmdn4heNbFPXlpSQaS8FzQw?e=9phTOu" target="_self" rel="nofollow noopener noreferrer"&gt;"data.csv" file&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;) showing the same outputs you got but notice that, for instance, 256,25 hours (duration in decimal format) is different than 16:25:00 duration in timeclock format mainly because, as you have well explained, "&lt;STRONG&gt;hh cannot exceed 24&lt;/STRONG&gt;&amp;nbsp;in the standard time format". So my problem remains unsolved&amp;nbsp;&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;&lt;SPAN&gt;My final goal is: finding a way to compare my duration time in decimal format (from column “SM_TTR_NET”) with the time range ("TO" from the table below) in&amp;nbsp;standard time format hh:mm:ss so I know which Credit% I need to apply.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Would then be better (due to this limitation of " "&lt;STRONG&gt;hh cannot exceed 24&lt;/STRONG&gt;&amp;nbsp;in the standard time format") to do other way around and finally convert the table below to decimal format (for instance, "TO" 04:00:00 -&amp;gt; 4,00) so I compare it with the duration time also in decimal format from column “SM_TTR_NET” ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Duration references&lt;BR /&gt;(hh:mm:ss)&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Credit %&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FROM&lt;/TD&gt;&lt;TD&gt;TO&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;00:00:01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;04:00:00&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;04:00:01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;08:00:00&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;10%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;08:00:01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;12:00:00&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;30%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;12:00:01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;24:00:00&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;50%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;24:00:01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;100%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see the results I got below in the attached csv file&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 16:26:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-duration-value-in-decimal-format-to-corresponding/m-p/3673082#M142510</guid>
      <dc:creator>FrankValentin</dc:creator>
      <dc:date>2024-02-01T16:26:25Z</dc:date>
    </item>
  </channel>
</rss>

