<?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: Milliseconds Duration in Quick Measures Gallery</title>
    <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Milliseconds-Duration/m-p/407445#M145</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks to your help. Your comments are very helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanna say you that the idea is getting well, but I have problems with milliseconds to minuts. I don´t know if Im wrong.&amp;nbsp; As you can see at the files attached, in a 100m race, a runner made 12.40 sgs, and it appears 12:400, its ok. But when the result is in minutes, for example a 1500m race, where the runner has 33:29.71, power bi shows 5:32:971.&amp;nbsp; The graphs appears wrong too. There is a possibiity to improve this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On another hand, when I try to graph the places of the 100m record,&amp;nbsp; it shows 12.4mil. There is a possibility to eliminate the text "mil"? Change it for min?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your time. Its really important that there is persons who wanna teach anothers to use this app.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
    <pubDate>Mon, 30 Apr 2018 17:36:51 GMT</pubDate>
    <dc:creator>davorgom</dc:creator>
    <dc:date>2018-04-30T17:36:51Z</dc:date>
    <item>
      <title>Milliseconds Duration</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Milliseconds-Duration/m-p/406698#M141</link>
      <description>&lt;P&gt;Based on the original blog post around Duration from 1/25/16 by&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="95" data-lia-user-login="konstantinos" class="lia-mention lia-mention-user"&gt;konstantinos&lt;/a&gt; and later blogged about here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Extends the formatting of Duration to include milliseconds.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Duration Milliseconds = 
// Duration formatting 
// * Based on @konstatinos and @Greg_Deckler blog post 
// https://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486 1/25/2016
// * Given a number of milliseconds, returns a format of "hh:mm:ss:000 format"
//
// We start with a duration in number of milliseconds
VAR Duration = SUM(Milliseconds[Milliseconds])
// There are 3,600,000 milliseconds in an hour
VAR Hours = INT ( Duration / 3600000)
// There are 60,000 milliseconds in a minute
VAR Minutes = INT ( MOD( Duration - ( Hours * 3600000 ),3600000 ) / 60000)
// There are 1000 milliseconds in a second  
VAR Seconds = INT (MOD ( MOD( Duration - ( Hours * 3600000 ) - (Minutes * 60000),60000 ), 60000 ) / 1000)
VAR Milli = ROUNDUP(MOD(MOD ( MOD( Duration - ( Hours * 3600000 ),3600000 ), 60000 ), 1000),0)
// These intermediate variables ensure that we have leading zero's concatenated onto single digits
// Hours with leading zeros
VAR H =
    IF ( LEN ( Hours ) = 1, 
        CONCATENATE ( "0", Hours ),
        CONCATENATE ( "", Hours )
      )
// Minutes with leading zeros
VAR M =
    IF (
        LEN ( Minutes ) = 1,
        CONCATENATE ( "0", Minutes ),
        CONCATENATE ( "", Minutes )
    )
// Seconds with leading zeros
VAR S =
    IF (
        LEN ( Seconds ) = 1,
        CONCATENATE ( "0", Seconds ),
        CONCATENATE ( "", Seconds )
    )
// MilliSeconds with leading zeros
VAR MS =
    IF (
        LEN ( Milli ) = 1,
        CONCATENATE ( "00", Milli ),
        IF (
           LEN (Milli) = 2,
           CONCATENATE("0", Milli),
           CONCATENATE ( "", Milli )
        )
    )
// Now return hours, minutes and seconds with leading zeros in the proper format "hh:mm:ss"
RETURN
    CONCATENATE (H,CONCATENATE ( ":", CONCATENATE ( M, CONCATENATE ( ":", CONCATENATE(S, CONCATENATE(":", MS ) ) ) ) ) )&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="reportid hidden"&gt;eyJrIjoiMzgwMWM4YzQtNmFhNy00NGI0LThiNjItZTMzMzAyYWQ2YTkyIiwidCI6IjRhMDQyNzQzLTM3M2EtNDNkMi04MjdiLTAwM2Y0YzdiYTFlNSIsImMiOjN9&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 11:51:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Milliseconds-Duration/m-p/406698#M141</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2018-06-26T11:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Milliseconds Duration</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Milliseconds-Duration/m-p/406801#M142</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I really apreciatte your time and your help. You had sent&amp;nbsp;me a little code but I don`t know how and where can I put this on te app. Can u say me how to do it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 01:12:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Milliseconds-Duration/m-p/406801#M142</guid>
      <dc:creator>davorgom</dc:creator>
      <dc:date>2018-04-30T01:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Milliseconds Duration</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Milliseconds-Duration/m-p/407215#M144</link>
      <description>&lt;P&gt;You can use this formula in a calculated column or in a measure. The only thing that really should need to change is this line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;VAR Duration = SUM(Milliseconds[Milliseconds]) &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My table is called Milliseconds and my column is called Milliseconds as well.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I attached the PBIX so you can download it and see how it functions.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 12:07:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Milliseconds-Duration/m-p/407215#M144</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2018-04-30T12:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Milliseconds Duration</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Milliseconds-Duration/m-p/407445#M145</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks to your help. Your comments are very helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanna say you that the idea is getting well, but I have problems with milliseconds to minuts. I don´t know if Im wrong.&amp;nbsp; As you can see at the files attached, in a 100m race, a runner made 12.40 sgs, and it appears 12:400, its ok. But when the result is in minutes, for example a 1500m race, where the runner has 33:29.71, power bi shows 5:32:971.&amp;nbsp; The graphs appears wrong too. There is a possibiity to improve this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On another hand, when I try to graph the places of the 100m record,&amp;nbsp; it shows 12.4mil. There is a possibility to eliminate the text "mil"? Change it for min?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your time. Its really important that there is persons who wanna teach anothers to use this app.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 17:36:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Milliseconds-Duration/m-p/407445#M145</guid>
      <dc:creator>davorgom</dc:creator>
      <dc:date>2018-04-30T17:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Milliseconds Duration</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Milliseconds-Duration/m-p/745686#M361</link>
      <description>&lt;P&gt;Dear &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code does well.. &lt;BR /&gt;I tried it with my case where I need to plot the duration against a category where the duration is in hh:mm:ss:000 format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When the same is tried for execution, the Y axis is shown as fractional number.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 10:59:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Milliseconds-Duration/m-p/745686#M361</guid>
      <dc:creator>vissvess</dc:creator>
      <dc:date>2019-07-22T10:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Milliseconds Duration</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Milliseconds-Duration/m-p/2752659#M884</link>
      <description>&lt;P&gt;Building on this in a simpler format, if you have a timestamp in milliseconds and want to convert it to a datetime:ms, then please see below. This is also incorporating the work from here&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Desktop/Parse-timestamps-to-date/m-p/155179" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Desktop/Parse-timestamps-to-date/m-p/155179&lt;/A&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;UTCTime = VAR msTimestamp = 'table'[timestamp]
VAR UnixDays = msTimestamp/(60*60*24*1000)
VAR Milli = RIGHT(msTimestamp,3)
VAR DateTime = (DATEVALUE("1/1/1970") + UnixDays)
RETURN CONCATENATE (FORMAT(DateTime, "dd/mm/yyyy hh:MM:ss"), CONCATENATE( ":", Milli))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 09:05:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Milliseconds-Duration/m-p/2752659#M884</guid>
      <dc:creator>HJC-AC</dc:creator>
      <dc:date>2022-09-07T09:05:52Z</dc:date>
    </item>
  </channel>
</rss>

