<?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 Measure time in days excluding weekends in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-time-in-days-excluding-weekends/m-p/738388#M2155</link>
    <description>&lt;P&gt;I have a measure which counts the number of days between two dates using the DATEDIFF funtion and that's fine.&amp;nbsp; However, as this is a business related measure, i need to exclude weekends.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So Friday to Monday should be calculated as 1 day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas if this is possible?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jul 2019 06:15:30 GMT</pubDate>
    <dc:creator>rogerdea</dc:creator>
    <dc:date>2019-07-12T06:15:30Z</dc:date>
    <item>
      <title>Measure time in days excluding weekends</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-time-in-days-excluding-weekends/m-p/738388#M2155</link>
      <description>&lt;P&gt;I have a measure which counts the number of days between two dates using the DATEDIFF funtion and that's fine.&amp;nbsp; However, as this is a business related measure, i need to exclude weekends.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So Friday to Monday should be calculated as 1 day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas if this is possible?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 06:15:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-time-in-days-excluding-weekends/m-p/738388#M2155</guid>
      <dc:creator>rogerdea</dc:creator>
      <dc:date>2019-07-12T06:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Measure time in days excluding weekends</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-time-in-days-excluding-weekends/m-p/738558#M2161</link>
      <description>&lt;P&gt;You need the equivalent to Excel's NETWORKDAYS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/counting-working-days-in-dax/" target="_self"&gt;https://www.sqlbi.com/articles/counting-working-days-in-dax/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 08:37:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-time-in-days-excluding-weekends/m-p/738558#M2161</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2019-07-12T08:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Measure time in days excluding weekends</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-time-in-days-excluding-weekends/m-p/738612#M2165</link>
      <description>&lt;P&gt;Create a proper Dates table and then you'll be able to do this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[# Working Days] =
CALCULATE(
	COUNTROWS( Dates ),
	KEEPFILTERS( Dates[Working Day] = TRUE() )
)&lt;/PRE&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 09:37:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-time-in-days-excluding-weekends/m-p/738612#M2165</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-12T09:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Measure time in days excluding weekends</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-time-in-days-excluding-weekends/m-p/740336#M2238</link>
      <description>&lt;P&gt;Thanks for the reply.&amp;nbsp; I now have this calculation in my date table, but how do i use this to measure working days from a date in my other data table?&amp;nbsp; Sorry if i have misunderstoof Darek.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 20:12:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-time-in-days-excluding-weekends/m-p/740336#M2238</guid>
      <dc:creator>rogerdea</dc:creator>
      <dc:date>2019-07-15T20:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Measure time in days excluding weekends</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-time-in-days-excluding-weekends/m-p/740349#M2240</link>
      <description>&lt;P&gt;Very easy in fact...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have 2 dates D1 and D2, then the number of working days between them is this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var __dateStart = D1 -- your start date 
var _dateEnd = D2 -- your end date
var __workingDays =
	calculate(
		[# Working Days],
		Dates[Date] &amp;gt;= D1,
		Dates[Date] &amp;lt;= D2
		ALL( Dates )
	)
return
	__workingDays&lt;/PRE&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 20:32:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-time-in-days-excluding-weekends/m-p/740349#M2240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-15T20:32:29Z</dc:date>
    </item>
  </channel>
</rss>

