<?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: Need Help in Time Intelligence Functions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-in-Time-Intelligence-Functions/m-p/3339862#M125336</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="387321" data-lia-user-login="Mhscmp100" class="lia-mention lia-mention-user"&gt;Mhscmp100&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please try below steps:&lt;/P&gt;
&lt;P&gt;1. below is my test table&lt;/P&gt;
&lt;P&gt;Table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. create a new column with below dax formula&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Time Variance =
VAR val =
    IF ( [arrival time] &amp;lt; [departure time], [arrival time] + 1, [arrival time] ) - [departure time]
RETURN
    FORMAT ( val, "hh:nn" )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please refer the attached .pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team_Binbin Yu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2023 03:11:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-07-20T03:11:08Z</dc:date>
    <item>
      <title>Need Help in Time Intelligence Functions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-in-Time-Intelligence-Functions/m-p/3335858#M125099</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;Does anyone know how to calculate time variance exactly as we calculate it in Excel? excel provide an option of the 1904 data system so power bi also provides the same or not?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example;&lt;/P&gt;&lt;P&gt;I have 2 times available in 2 different columns with names as;&lt;/P&gt;&lt;P&gt;actual departure time 21:00&lt;/P&gt;&lt;P&gt;actual arrival time 00:36&lt;/P&gt;&lt;P&gt;time variance = actual arrival time&amp;nbsp; - actual departure time&amp;nbsp;&lt;/P&gt;&lt;P&gt;time variance = 00:36 - 21:00&lt;/P&gt;&lt;P&gt;power bi shows the output as 20:24 instead of 03:36 which is shown in Excel by formatting the 1904 data system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 07:50:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-in-Time-Intelligence-Functions/m-p/3335858#M125099</guid>
      <dc:creator>Mhscmp100</dc:creator>
      <dc:date>2023-07-18T07:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help in Time Intelligence Functions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-in-Time-Intelligence-Functions/m-p/3339862#M125336</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="387321" data-lia-user-login="Mhscmp100" class="lia-mention lia-mention-user"&gt;Mhscmp100&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please try below steps:&lt;/P&gt;
&lt;P&gt;1. below is my test table&lt;/P&gt;
&lt;P&gt;Table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. create a new column with below dax formula&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Time Variance =
VAR val =
    IF ( [arrival time] &amp;lt; [departure time], [arrival time] + 1, [arrival time] ) - [departure time]
RETURN
    FORMAT ( val, "hh:nn" )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please refer the attached .pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team_Binbin Yu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 03:11:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-in-Time-Intelligence-Functions/m-p/3339862#M125336</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-20T03:11:08Z</dc:date>
    </item>
  </channel>
</rss>

