<?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 Calculate Difference Between Two Date/Time Values in a new column in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Calculate-Difference-Between-Two-Date-Time-Values-in-a-new/m-p/1442679#M16357</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 column below, I would like to have the diffrence in days hours minutes like 2 days 12 hours 6 minutes... I am new to powerbi, can someone help me to provide me step by step process, I would really appreciate it. Thanks have&amp;nbsp; a good day.&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;Regards,&lt;/P&gt;&lt;P&gt;Prasanjit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Oct 2020 16:16:54 GMT</pubDate>
    <dc:creator>pswain</dc:creator>
    <dc:date>2020-10-19T16:16:54Z</dc:date>
    <item>
      <title>Calculate Difference Between Two Date/Time Values in a new column</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Calculate-Difference-Between-Two-Date-Time-Values-in-a-new/m-p/1442679#M16357</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 column below, I would like to have the diffrence in days hours minutes like 2 days 12 hours 6 minutes... I am new to powerbi, can someone help me to provide me step by step process, I would really appreciate it. Thanks have&amp;nbsp; a good day.&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;Regards,&lt;/P&gt;&lt;P&gt;Prasanjit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 16:16:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Calculate-Difference-Between-Two-Date-Time-Values-in-a-new/m-p/1442679#M16357</guid>
      <dc:creator>pswain</dc:creator>
      <dc:date>2020-10-19T16:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Difference Between Two Date/Time Values in a new column</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Calculate-Difference-Between-Two-Date-Time-Values-in-a-new/m-p/1444795#M16358</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="226243" data-lia-user-login="pswain" class="lia-mention lia-mention-user"&gt;pswain&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use DATEDIFF function to get the required output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Manikumar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos. Accept as solution if this is helpful&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 11:59:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Calculate-Difference-Between-Two-Date-Time-Values-in-a-new/m-p/1444795#M16358</guid>
      <dc:creator>manikumar34</dc:creator>
      <dc:date>2020-10-20T11:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Difference Between Two Date/Time Values in a new column</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Calculate-Difference-Between-Two-Date-Time-Values-in-a-new/m-p/1444800#M16359</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="226243" data-lia-user-login="pswain" class="lia-mention lia-mention-user"&gt;pswain&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Power Query create a new Conditional Column and subtract Closed Month from Creation Month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Creation Month", type datetime}, {"Closed Month", type datetime}}),
    #"Added Custom" = Table.AddColumn(#"Changed Type", "Duration", each [Closed Month]-[Creation Month])
in
    #"Added Custom"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample file : &lt;A href="https://d13ot9o61jdzpp.cloudfront.net/files/duration.xlsx" target="_self"&gt;Duration&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Phil&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;If I answered your question please mark my post as the solution. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 12:12:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Calculate-Difference-Between-Two-Date-Time-Values-in-a-new/m-p/1444800#M16359</guid>
      <dc:creator>PhilipTreacy</dc:creator>
      <dc:date>2020-10-20T12:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Difference Between Two Date/Time Values in a new column</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Calculate-Difference-Between-Two-Date-Time-Values-in-a-new/m-p/1445891#M16363</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="226243" data-lia-user-login="pswain" class="lia-mention lia-mention-user"&gt;pswain&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You just need to copy this to your new calculated column:&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;LI-CODE lang="markup"&gt;DIFF = 
VAR _D = DATEDIFF('YourTable'[Closed Month],'YourTable'[Creation Month],DAY)
VAR _H = DATEDIFF('YourTable'[Closed Month],'YourTable'[Creation Month],HOUR)-_D*24
VAR _M = DATEDIFF('YourTable'[Closed Month],'YourTable'[Creation Month],MINUTE)-_D*24*60-_H*60
RETURN
_D &amp;amp; " days" &amp;amp; _H &amp;amp; " hours" &amp;amp; _M &amp;amp; " minutes"&lt;/LI-CODE&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;Best.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 03:40:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Calculate-Difference-Between-Two-Date-Time-Values-in-a-new/m-p/1445891#M16363</guid>
      <dc:creator>DavisBI</dc:creator>
      <dc:date>2020-10-21T03:40:59Z</dc:date>
    </item>
  </channel>
</rss>

