<?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 Calculating time difference in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-time-difference/m-p/2160039#M49941</link>
    <description>&lt;P&gt;I have the following table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I want to add a column that calculates the time difference in hours between each consecutive Updated Date column.&lt;/P&gt;&lt;P&gt;How do I do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Oct 2021 07:00:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-10-28T07:00:58Z</dc:date>
    <item>
      <title>Calculating time difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-time-difference/m-p/2160039#M49941</link>
      <description>&lt;P&gt;I have the following table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I want to add a column that calculates the time difference in hours between each consecutive Updated Date column.&lt;/P&gt;&lt;P&gt;How do I do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 07:00:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-time-difference/m-p/2160039#M49941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-28T07:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating time difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-time-difference/m-p/2160208#M49943</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First create the order with RANKX and then you can do datediff where you filter the second time value rankvalue is&amp;nbsp; -1&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 07:53:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-time-difference/m-p/2160208#M49943</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-28T07:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating time difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-time-difference/m-p/2160594#M49949</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;How can the rankvalue be -1??&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 10:17:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-time-difference/m-p/2160594#M49949</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-28T10:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating time difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-time-difference/m-p/2165815#M50168</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;According to your description, here&lt;/SPAN&gt;’&lt;SPAN&gt;s my solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1.Create a calculated column by the rank of UpdatedDate.&lt;/P&gt;&lt;P&gt;RANK = RANKX('Table','Table'[UpdatedDate],,ASC,Dense)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;.Calculates the time difference.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;3.You can also use a card visual to display the sum of time difference.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ kalyj&lt;/P&gt;&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 06:00:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-time-difference/m-p/2165815#M50168</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2021-11-02T06:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating time difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-time-difference/m-p/2166313#M50202</link>
      <description>&lt;P&gt;Hey&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I actually want the Sum of all those differences of consecutive rows in a measure to display in a card visual.&lt;/P&gt;&lt;P&gt;How do I do the same?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 13:13:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-time-difference/m-p/2166313#M50202</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-01T13:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating time difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-time-difference/m-p/2167623#M50272</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I revised the previous reply, you can refer to it.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team _ kalyj&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 06:08:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-time-difference/m-p/2167623#M50272</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2021-11-02T06:08:38Z</dc:date>
    </item>
  </channel>
</rss>

