<?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: Time Calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Calculation/m-p/1145214#M17250</link>
    <description>&lt;P&gt;&lt;A href="https://docs.microsoft.com/nl-nl/dax/datediff-function-dax" target="_blank"&gt;https://docs.microsoft.com/nl-nl/dax/datediff-function-dax&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 06 Jun 2020 04:54:01 GMT</pubDate>
    <dc:creator>stevedep</dc:creator>
    <dc:date>2020-06-06T04:54:01Z</dc:date>
    <item>
      <title>Time Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Calculation/m-p/1145199#M17249</link>
      <description>&lt;P&gt;Sorry if this is very rudimentary, but I am new at this and struggling.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the DAX to calculate the difference in time, or the amount of hours worked for this data?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially I want...&lt;/P&gt;&lt;P&gt;Time Worked = (End Time - Start Time - Personal Time)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2020 03:54:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Calculation/m-p/1145199#M17249</guid>
      <dc:creator>EZRIDR01</dc:creator>
      <dc:date>2020-06-06T03:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Time Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Calculation/m-p/1145214#M17250</link>
      <description>&lt;P&gt;&lt;A href="https://docs.microsoft.com/nl-nl/dax/datediff-function-dax" target="_blank"&gt;https://docs.microsoft.com/nl-nl/dax/datediff-function-dax&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2020 04:54:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Calculation/m-p/1145214#M17250</guid>
      <dc:creator>stevedep</dc:creator>
      <dc:date>2020-06-06T04:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Time Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Calculation/m-p/1145377#M17267</link>
      <description>&lt;P&gt;Assuming you want the result in hours:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Time Worked = (End Time - Start Time)*24 - Personal Time&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2020 12:08:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Calculation/m-p/1145377#M17267</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-06-06T12:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Time Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Calculation/m-p/1145649#M17281</link>
      <description>&lt;P&gt;The other responses are good ways to do it in DAX after you've loaded the table, but if you want to do it in the query editor you can add a custom column with this formula&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Duration.TotalHours([End Time (Military Time)] - [Start Time (Military Time)]) - [Personal Time Away During Shift (Hours)]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this works for you, please mark it as the solution.&amp;nbsp; Kudos are appreciated too.&amp;nbsp; Please let me know if not.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 01:32:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Calculation/m-p/1145649#M17281</guid>
      <dc:creator>mahoneypat</dc:creator>
      <dc:date>2020-06-07T01:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Time Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Calculation/m-p/1147711#M17381</link>
      <description>&lt;P&gt;MahoneyPat- Thank you!&amp;nbsp; This is what I was looking to accomplish.&amp;nbsp;&amp;nbsp; Apologies to the others for not using the proper terminology (DAX vs M).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate everyones efforts. &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 00:14:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-Calculation/m-p/1147711#M17381</guid>
      <dc:creator>EZRIDR01</dc:creator>
      <dc:date>2020-06-09T00:14:34Z</dc:date>
    </item>
  </channel>
</rss>

