<?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: Find the duration in Hours &amp;amp; Mins when two columns show time only and goes past midnight in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-duration-in-Hours-amp-Mins-when-two-columns-show-time/m-p/1415990#M26315</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250010" data-lia-user-login="Debbiethenovice" class="lia-mention lia-mention-user"&gt;Debbiethenovice&lt;/a&gt; , Try in power query in new column&lt;/P&gt;
&lt;P&gt;If [start time]&amp;gt;=[end time] then [start time]- [end time] else #duration(0,24,0,0) -([start time]- [end time])&lt;/P&gt;</description>
    <pubDate>Tue, 06 Oct 2020 16:51:28 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2020-10-06T16:51:28Z</dc:date>
    <item>
      <title>Find the duration in Hours &amp; Mins when two columns show time only and goes past midnight</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-duration-in-Hours-amp-Mins-when-two-columns-show-time/m-p/1415782#M26304</link>
      <description>&lt;P&gt;Hi All, I have the below columns and I need to know how many hours/duration a shift is. I applied =Duration.From([EndTime]-[StartTime]) in power query, custom column but it doesnt work. I also tried others and then I get &lt;EM&gt;error. &lt;/EM&gt;Can someone please help?&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;</description>
      <pubDate>Tue, 06 Oct 2020 14:58:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-duration-in-Hours-amp-Mins-when-two-columns-show-time/m-p/1415782#M26304</guid>
      <dc:creator>Debbiethenovice</dc:creator>
      <dc:date>2020-10-06T14:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Find the duration in Hours &amp; Mins when two columns show time only and goes past midnight</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-duration-in-Hours-amp-Mins-when-two-columns-show-time/m-p/1415944#M26311</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250010" data-lia-user-login="Debbiethenovice" class="lia-mention lia-mention-user"&gt;Debbiethenovice&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If([start time]&amp;gt;=[end time] ,[start time]- [end time] , time(24,0,0) -([start time]- [end time]))&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 16:22:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-duration-in-Hours-amp-Mins-when-two-columns-show-time/m-p/1415944#M26311</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-10-06T16:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Find the duration in Hours &amp; Mins when two columns show time only and goes past midnight</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-duration-in-Hours-amp-Mins-when-two-columns-show-time/m-p/1415980#M26313</link>
      <description>&lt;P&gt;Hi Armitchandak, Thank you, would I use that in Power query, custom column please? I did try and I got the below error.&amp;nbsp;&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;</description>
      <pubDate>Tue, 06 Oct 2020 16:46:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-duration-in-Hours-amp-Mins-when-two-columns-show-time/m-p/1415980#M26313</guid>
      <dc:creator>Debbiethenovice</dc:creator>
      <dc:date>2020-10-06T16:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Find the duration in Hours &amp; Mins when two columns show time only and goes past midnight</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-duration-in-Hours-amp-Mins-when-two-columns-show-time/m-p/1415990#M26315</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250010" data-lia-user-login="Debbiethenovice" class="lia-mention lia-mention-user"&gt;Debbiethenovice&lt;/a&gt; , Try in power query in new column&lt;/P&gt;
&lt;P&gt;If [start time]&amp;gt;=[end time] then [start time]- [end time] else #duration(0,24,0,0) -([start time]- [end time])&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 16:51:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-duration-in-Hours-amp-Mins-when-two-columns-show-time/m-p/1415990#M26315</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-10-06T16:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Find the duration in Hours &amp; Mins when two columns show time only and goes past midnight</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-duration-in-Hours-amp-Mins-when-two-columns-show-time/m-p/1417374#M26336</link>
      <description>&lt;P&gt;Sorry, i tried that, didn't get an error on the syntex but the result shows errors: what am i doing wrong?&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;</description>
      <pubDate>Wed, 07 Oct 2020 07:53:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-duration-in-Hours-amp-Mins-when-two-columns-show-time/m-p/1417374#M26336</guid>
      <dc:creator>Debbiethenovice</dc:creator>
      <dc:date>2020-10-07T07:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Find the duration in Hours &amp; Mins when two columns show time only and goes past midnight</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-duration-in-Hours-amp-Mins-when-two-columns-show-time/m-p/1417804#M26343</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250010" data-lia-user-login="Debbiethenovice" class="lia-mention lia-mention-user"&gt;Debbiethenovice&lt;/a&gt;&amp;nbsp; &amp;nbsp;welcome to the forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, don't trust some formula that someone probably wrote in about 15 seconds and fired off to you.&lt;/P&gt;
&lt;P&gt;Second, you might as well learn to debug these Power Query statements.&amp;nbsp; Here's how:&lt;/P&gt;
&lt;P&gt;Click in the same cell as an error and you'll get the error message below.&amp;nbsp; These don't often help that much but it'll be a start.&lt;/P&gt;
&lt;P&gt;Also, to debug if..then statements, I often replace one of the clauses with&amp;nbsp; &amp;nbsp;0&amp;nbsp; just to remove it from the situation, so try that with either&amp;nbsp; the 'then'&amp;nbsp; or 'else' results until you get 1/2 of your data to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Get back to me if you make progress&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 10:10:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-duration-in-Hours-amp-Mins-when-two-columns-show-time/m-p/1417804#M26343</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2020-10-07T10:10:00Z</dc:date>
    </item>
  </channel>
</rss>

