<?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: Datediff between two times in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-between-two-times/m-p/687187#M545</link>
    <description>&lt;P&gt;My mistake what i meant was. The hours that are in between 11pm to 5am are 6 hours.&lt;/P&gt;&lt;P&gt;But from my Dax is get an answer of 18 hours.&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81111" data-lia-user-login="HotChilli" class="lia-mention lia-mention-user"&gt;HotChilli&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2019 06:35:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-09T06:35:55Z</dc:date>
    <item>
      <title>Datediff between two times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-between-two-times/m-p/686291#M525</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to powerbi i have created a dax to calculate the difference between start and end time.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;kpi = SWITCH(TRUE();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;project[Start time]&amp;lt;project[End time];DATEDIFF([Start time]; [End time];HOUR);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Start time]&amp;gt;[End time]; DATEDIFF(project[End time];project[Start time];HOUR);0)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;My start time is 7-05-2019 23:00 and End time 7-05-2019 05:00 the difference between the two times is 6 hours but it gives me an output of 18. Can some one help me out by fixing this issue thank you!!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 May 2019 09:12:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-between-two-times/m-p/686291#M525</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-08T09:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Datediff between two times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-between-two-times/m-p/686852#M539</link>
      <description>&lt;P&gt;There's definitely 18 hours between 5 am and 11pm on the same day&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 20:10:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-between-two-times/m-p/686852#M539</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2019-05-08T20:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Datediff between two times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-between-two-times/m-p/687187#M545</link>
      <description>&lt;P&gt;My mistake what i meant was. The hours that are in between 11pm to 5am are 6 hours.&lt;/P&gt;&lt;P&gt;But from my Dax is get an answer of 18 hours.&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81111" data-lia-user-login="HotChilli" class="lia-mention lia-mention-user"&gt;HotChilli&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 06:35:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-between-two-times/m-p/687187#M545</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-09T06:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Datediff between two times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-between-two-times/m-p/687501#M549</link>
      <description>&lt;P&gt;You'll have to clear this up before proceeding.&amp;nbsp; The sample data provided is "My start time is 7-05-2019 23:00 and End time 7-05-2019 05:00".&amp;nbsp; What is the real data?&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 10:53:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-between-two-times/m-p/687501#M549</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2019-05-09T10:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Datediff between two times</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-between-two-times/m-p/687701#M552</link>
      <description>&lt;P&gt;Thank you for your reply. I think i found the problem if you get the data from sharepoint. Powerbi Default local time for netherlands in summer time is +2 hours that is why it is giving me the wrong output in powerbi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;= Table.AddColumn(#"Namen van kolommen gewijzigd", "LocalDateTime", each DateTime.AddZone([Begin tijd],2))&lt;/P&gt;&lt;P&gt;And the mistake for 23:00 to 05:00 was giving me 18 hours is because the sharepoint list was in text not in data/time. Now i set it to the right field and gave me 6 hours in between.&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81111" data-lia-user-login="HotChilli" class="lia-mention lia-mention-user"&gt;HotChilli&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 14:04:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Datediff-between-two-times/m-p/687701#M552</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-09T14:04:52Z</dc:date>
    </item>
  </channel>
</rss>

