<?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: date/time difference in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/date-time-difference/m-p/3025544#M103153</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="162423" data-lia-user-login="EloiseJane" class="lia-mention lia-mention-user"&gt;EloiseJane&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;What are the working hours? What are the non work days? Do you have a holiday table? Please share the same sample data as copy/paste.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2023 11:15:41 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-01-17T11:15:41Z</dc:date>
    <item>
      <title>date/time difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/date-time-difference/m-p/3025406#M103137</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to work out the working day/time difference to establish the case length. ideally discounting non work days/hours.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This are the 2 fields i have, and a date table.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Any help will be great.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 10:16:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/date-time-difference/m-p/3025406#M103137</guid>
      <dc:creator>EloiseJane</dc:creator>
      <dc:date>2023-01-17T10:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: date/time difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/date-time-difference/m-p/3025544#M103153</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="162423" data-lia-user-login="EloiseJane" class="lia-mention lia-mention-user"&gt;EloiseJane&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;What are the working hours? What are the non work days? Do you have a holiday table? Please share the same sample data as copy/paste.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 11:15:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/date-time-difference/m-p/3025544#M103153</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-01-17T11:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: date/time difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/date-time-difference/m-p/3030599#M103547</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="162423" data-lia-user-login="EloiseJane" class="lia-mention lia-mention-user"&gt;EloiseJane&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, here are my steps you can follow as a solution.&lt;/P&gt;
&lt;P&gt;(1) This is my test data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(2) We can create a calculated column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Working Days = NETWORKDAYS('Table'[Created Date], 'Table'[Resolved Date], 1)&lt;/LI-CODE&gt;
&lt;P&gt;(3) Then the result is as follows.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please refer to the following documents for more information.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.mssqltips.com/sqlservertip/7359/calculating-work-days-power-bi-dax-networkdays-function/#:~:text=The%20NETWORKDAYS%20DAX%20function%20will%20return%20an%20integer,below.%20NETWORKDAYS%20%28%3Cstart_date%3E%2C%20%3Cend_date%3E%20%20%20%3Cweekend%3E%2C%20%3Cholidays%3E%5D%29" target="_blank"&gt;Calculating Work Days in Power BI with DAX NETWORKDAYS Function (mssqltips.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.mssqltips.com/sqlservertip/6917/working-days-calculator-power-bi/#:~:text=Calculate%20Working%20Days%20in%20Power%20BI%201%20STEP,final%20output%20using%20filters%20in%20the%20DatesTable%20" target="_blank"&gt;Working Days Calculator in Power BI (mssqltips.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blog.enterprisedna.co/calculate-workdays-between-two-dates-in-power-bi/" target="_blank"&gt;Calculate Workdays Between Two Dates in Power BI (enterprisedna.co)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 08:07:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/date-time-difference/m-p/3030599#M103547</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-19T08:07:06Z</dc:date>
    </item>
  </channel>
</rss>

