<?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 measures excluding weekends in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-measures-excluding-weekends/m-p/1172515#M18125</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240201" data-lia-user-login="Lexi" class="lia-mention lia-mention-user"&gt;Lexi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check these solutions for time difference&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://poszytek.eu/en/microsoft-en/office-365-en/powerbi-en/powerbi-datediff-only-working-days-hours-and-so-on/" target="_blank"&gt;https://poszytek.eu/en/microsoft-en/office-365-en/powerbi-en/powerbi-datediff-only-working-days-hours-and-so-on/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Calculating-Working-hours/m-p/374255/highlight/true" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Calculating-Working-hours/m-p/374255/highlight/true&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Time-difference-between-two-date-times-excluding-weekends-and/td-p/563564" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Time-difference-between-two-date-times-excluding-weekends-and/td-p/563564&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Calculating-Working-Hours-Between-Two-Dates-Times/td-p/730197" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Calculating-Working-Hours-Between-Two-Dates-Times/td-p/730197&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=bs3yzmf9elA" target="_blank"&gt;https://www.youtube.com/watch?v=bs3yzmf9elA&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=GLIoDbOiJgw" target="_blank"&gt;https://www.youtube.com/watch?v=GLIoDbOiJgw&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/DATEDIFF-Working-Days/td-p/130662" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/DATEDIFF-Working-Days/td-p/130662&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 21 Jun 2020 18:11:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-06-21T18:11:06Z</dc:date>
    <item>
      <title>Time measures excluding weekends</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-measures-excluding-weekends/m-p/1172390#M18111</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello Power BI experts!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am looking for help on some time calculations. I am fairly new to Power bi so would need step to step guide (teaching a baby to walk&lt;span class="lia-unicode-emoji" title=":baby:"&gt;👶&lt;/span&gt;) Date table below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scenario 1:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to calculate the business hours between two time stamps but to only calculate the business hours (8AM-4PM) and to exclude weekends.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Scenario 2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to calculate how long its been in the queue, so from created date to now (todays date and time) and to exlude weekend time and to be within the businees working hour.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;From here I need to hightlight if we are gone above our criteria of priority 1 = 5 actual business days and priority 2 = 2 days.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Id like to include the total diffence in hours in one column and and the no days in another column. I am sorry if there has been an answer already but nothing seems to work for me and I am totally confused&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Lexi&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":unicorn_face:"&gt;🦄&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Customer ID&lt;/TD&gt;&lt;TD&gt;Created Date&lt;/TD&gt;&lt;TD&gt;Completed Date&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;Stage&lt;/TD&gt;&lt;TD&gt;Priority&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;00000001&lt;/TD&gt;&lt;TD&gt;21/01/2020 15:37&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;New&lt;/TD&gt;&lt;TD&gt;Priority 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;00001642&lt;/TD&gt;&lt;TD&gt;09/05/2020 10:59&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;New&lt;/TD&gt;&lt;TD&gt;Priority 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;00236325&lt;/TD&gt;&lt;TD&gt;27/04/2020 07:53&lt;/TD&gt;&lt;TD&gt;27/04/2020 09:35&lt;/TD&gt;&lt;TD&gt;Completed&lt;/TD&gt;&lt;TD&gt;Priority 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01000344&lt;/TD&gt;&lt;TD&gt;20/05/2020 04:27&lt;/TD&gt;&lt;TD&gt;21/05/2020 07:25&lt;/TD&gt;&lt;TD&gt;Completed&lt;/TD&gt;&lt;TD&gt;Priority 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01013450&lt;/TD&gt;&lt;TD&gt;18/06/2020 04:27&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;New&lt;/TD&gt;&lt;TD&gt;Priority 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01002678&lt;/TD&gt;&lt;TD&gt;18/06/2020 05:27&lt;/TD&gt;&lt;TD&gt;19/06/2020 04:27&lt;/TD&gt;&lt;TD&gt;Completed&lt;/TD&gt;&lt;TD&gt;Priority 1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sun, 21 Jun 2020 14:29:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-measures-excluding-weekends/m-p/1172390#M18111</guid>
      <dc:creator>Lexi</dc:creator>
      <dc:date>2020-06-21T14:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Time measures excluding weekends</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-measures-excluding-weekends/m-p/1172487#M18117</link>
      <description>&lt;P&gt;You are not specifying what your weekend days are. You are also not specifying if the data comes from different time zones. You have not specified how long a business day is.&amp;nbsp; (Assumption would be Sat/Sun, no, and eight?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you already created a Dates table (sometimes also called Calendar table)?&amp;nbsp; Usually that is where you add the "workday"&amp;nbsp; flag. Is that table only used in one timezone or is it based on UTC ? Fun fact - the Power BI service thinks in UTC. Endless entertainment for scenarios like yours.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jun 2020 17:20:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-measures-excluding-weekends/m-p/1172487#M18117</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-06-21T17:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Time measures excluding weekends</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-measures-excluding-weekends/m-p/1172492#M18120</link>
      <description>&lt;P&gt;Hi Ibendlin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for replying.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Weekends would include Saturday and Sunday. No different time zones only GMT. Business hours would be in fact 8 am till 4pm Mon-Fri.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have a calendar I created using the formula Calenderauto(). Hope this is &lt;SPAN&gt;sufficient.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Lexi.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jun 2020 17:29:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-measures-excluding-weekends/m-p/1172492#M18120</guid>
      <dc:creator>Lexi</dc:creator>
      <dc:date>2020-06-21T17:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Time measures excluding weekends</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-measures-excluding-weekends/m-p/1172515#M18125</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240201" data-lia-user-login="Lexi" class="lia-mention lia-mention-user"&gt;Lexi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check these solutions for time difference&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://poszytek.eu/en/microsoft-en/office-365-en/powerbi-en/powerbi-datediff-only-working-days-hours-and-so-on/" target="_blank"&gt;https://poszytek.eu/en/microsoft-en/office-365-en/powerbi-en/powerbi-datediff-only-working-days-hours-and-so-on/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Calculating-Working-hours/m-p/374255/highlight/true" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Calculating-Working-hours/m-p/374255/highlight/true&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Time-difference-between-two-date-times-excluding-weekends-and/td-p/563564" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Time-difference-between-two-date-times-excluding-weekends-and/td-p/563564&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Calculating-Working-Hours-Between-Two-Dates-Times/td-p/730197" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Calculating-Working-Hours-Between-Two-Dates-Times/td-p/730197&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=bs3yzmf9elA" target="_blank"&gt;https://www.youtube.com/watch?v=bs3yzmf9elA&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=GLIoDbOiJgw" target="_blank"&gt;https://www.youtube.com/watch?v=GLIoDbOiJgw&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/DATEDIFF-Working-Days/td-p/130662" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/DATEDIFF-Working-Days/td-p/130662&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jun 2020 18:11:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-measures-excluding-weekends/m-p/1172515#M18125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-21T18:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Time measures excluding weekends</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-measures-excluding-weekends/m-p/1172525#M18128</link>
      <description>&lt;P&gt;One more thing . you have not specified how to handle exceptions, ie when one or both of your timestamps happen to be on weekends or on workdays but outside the agreed business hours? Do you penalize users for that?&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jun 2020 18:26:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-measures-excluding-weekends/m-p/1172525#M18128</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-06-21T18:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Time measures excluding weekends</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-measures-excluding-weekends/m-p/1172616#M18147</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried all links with no success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The dax code, seems to be the closest thing but an error comes up: the start or end date in calendar function can not be blank. Even if I put the created date and completed date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Working Hours = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR filtered =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ADDCOLUMNS (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CROSSJOIN (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALENDAR ( [Created Date],[Completed Date] ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;With the exceptions, I was thought that the "timer" would count from the next date or time ie Mon-FRi 8am-5pm.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Lexi&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 21 Jun 2020 22:15:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-measures-excluding-weekends/m-p/1172616#M18147</guid>
      <dc:creator>Lexi</dc:creator>
      <dc:date>2020-06-21T22:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Time measures excluding weekends</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-measures-excluding-weekends/m-p/1172977#M18165</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240201" data-lia-user-login="Lexi" class="lia-mention lia-mention-user"&gt;Lexi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share a sample pbix file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 06:07:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Time-measures-excluding-weekends/m-p/1172977#M18165</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-22T06:07:16Z</dc:date>
    </item>
  </channel>
</rss>

