<?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: Time duration in power bi in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-duration-in-power-bi/m-p/3299807#M123039</link>
    <description>&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;</description>
    <pubDate>Fri, 23 Jun 2023 12:47:04 GMT</pubDate>
    <dc:creator>Tahmineh1989</dc:creator>
    <dc:date>2023-06-23T12:47:04Z</dc:date>
    <item>
      <title>Time duration in power bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-duration-in-power-bi/m-p/3299681#M123031</link>
      <description>&lt;P&gt;How calculate the difference time between 11:54:00 PM and 12:09:00 AM in power bi?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 11:25:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-duration-in-power-bi/m-p/3299681#M123031</guid>
      <dc:creator>Tahmineh1989</dc:creator>
      <dc:date>2023-06-23T11:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Time duration in power bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-duration-in-power-bi/m-p/3299715#M123034</link>
      <description>&lt;P&gt;If the end time is earlier in the (next) day, you can +1 to the difference. This article may have some good other info on working with times/durations in Power BI.&lt;/P&gt;&lt;P&gt;&lt;A href="https://hoosierbi.com/2021/10/16/calculate-and-format-durations-in-dax/" target="_blank"&gt;Calculate and Format Durations in DAX – Hoosier BI&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 11:48:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-duration-in-power-bi/m-p/3299715#M123034</guid>
      <dc:creator>ppm1</dc:creator>
      <dc:date>2023-06-23T11:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Time duration in power bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-duration-in-power-bi/m-p/3299807#M123039</link>
      <description>&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;</description>
      <pubDate>Fri, 23 Jun 2023 12:47:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-duration-in-power-bi/m-p/3299807#M123039</guid>
      <dc:creator>Tahmineh1989</dc:creator>
      <dc:date>2023-06-23T12:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Time duration in power bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-duration-in-power-bi/m-p/3301486#M123158</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="579655" data-lia-user-login="Tahmineh1989" class="lia-mention lia-mention-user"&gt;Tahmineh1989&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Column:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MINUTE = DATEDIFF([Time1],[Time2],MINUTE)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expect?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/datediff-function-dax" target="_blank"&gt;DATEDIFF function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;helps, then please consider&amp;nbsp;&lt;EM&gt;Accept it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 03:03:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-duration-in-power-bi/m-p/3301486#M123158</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-06-26T03:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Time duration in power bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-duration-in-power-bi/m-p/3302072#M123214</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I did what you said. But the value of -1425 is wrong. The duration between 11:51:08 PM on 22 June and 12:06:08 AM on 23 June is 15 min. Why does it show this huge amount?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 09:31:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-duration-in-power-bi/m-p/3302072#M123214</guid>
      <dc:creator>Tahmineh1989</dc:creator>
      <dc:date>2023-06-26T09:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Time duration in power bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-duration-in-power-bi/m-p/3309637#M123668</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="579655" data-lia-user-login="Tahmineh1989" class="lia-mention lia-mention-user"&gt;Tahmineh1989&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Column:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LongTime1 = [Date]&amp;amp;" "&amp;amp;[Time1]&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;LongTime2 = 
Var _lastdate=MAXX(FILTER('Table',[LongTime1]&amp;gt;EARLIER('Table'[LongTime1])),[Date])
Return
IF(_lastdate=BLANK(),BLANK(),_lastdate&amp;amp;" "&amp;amp;[Time2])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Change the format of the column from text to datetime.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Diff = DATEDIFF([LongTime1],[LongTime2],MINUTE)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expect?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;helps, then please consider&amp;nbsp;&lt;EM&gt;Accept it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 07:38:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-duration-in-power-bi/m-p/3309637#M123668</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-06-30T07:38:03Z</dc:date>
    </item>
  </channel>
</rss>

