<?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 Power BI: DAX Function NETWORKDAYS in Quick Measures Gallery</title>
    <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Power-BI-DAX-Function-NETWORKDAYS/m-p/2685298#M873</link>
    <description>&lt;H1&gt;Power BI: DAX Function NETWORKDAYS&lt;/H1&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Power BI in July 2022 has released a new DAX function &lt;A href="https://docs.microsoft.com/en-us/dax/networkdays-dax" target="_self"&gt;Networkdays&lt;/A&gt;.&lt;BR /&gt;I would like to explore the same here. I have uploaded the file used in this blog on &lt;A href="https://github.com/amitchandakpbi/powerbi/blob/main/Networkdays%20Data.xlsx" target="_self"&gt;GitHub&lt;/A&gt;. There are two tables. One with two dates to get networkdays and the second having US holidays for the Year 2022.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Networkdays function can take 4 parameters and the last two are optional&lt;BR /&gt;1. Start Date&lt;BR /&gt;2. End Date&amp;nbsp;&lt;BR /&gt;3. Week End&lt;BR /&gt;4. Holidays&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Power BI has given various weekend options, which you can find in the document. The common one is 1 which means the weekend is Saturday and Sunday&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The traditional method to get the workdays between two dates was&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Work Days Traditional 1 = Countrows(filter( CALENDAR([Date1],Dates[Date2]), WEEKDAY([Date],2) &amp;lt;6 ))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The same can be achieved using&amp;nbsp;&lt;BR /&gt;Work Days 1 = NETWORKDAYS(Dates[Date1],Dates[Date2],1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add holidays using the table, for example, manual table addition&amp;nbsp;&lt;BR /&gt;Work Days 2 = NETWORKDAYS(Dates[Date1],Dates[Date2],1, {Date(2022,1,17)})&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the old method, you need to do&amp;nbsp;&lt;BR /&gt;Work Days Traditional 2 = Countrows(filter( CALENDAR([Date1],Dates[Date2]), WEEKDAY([Date],2) &amp;lt;6 &amp;amp;&amp;amp; not [Date] in {Date(2022,01,17)}))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use a calendar table, I will use the one I loaded into the file. I have more than one column. I am taking only one. I can use distinct to all.&lt;BR /&gt;Work Days = NETWORKDAYS(Dates[Date1],Dates[Date2],1, distinct(Holidays[Date]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the old method, you need to do&lt;BR /&gt;Work Days Traditional = Countrows(filter( CALENDAR([Date1],Dates[Date2]), WEEKDAY([Date],2) &amp;lt;6 &amp;amp;&amp;amp; not [Date] in distinct(Holidays[Date])))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let find the blog &lt;A href="https://amitchandak.medium.com/power-bi-dax-function-networkdays-5c8e4aca38c" target="_self"&gt;here&lt;/A&gt;. Like, Share, and Comment.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Aug 2022 02:59:42 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-08-08T02:59:42Z</dc:date>
    <item>
      <title>Power BI: DAX Function NETWORKDAYS</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Power-BI-DAX-Function-NETWORKDAYS/m-p/2685298#M873</link>
      <description>&lt;H1&gt;Power BI: DAX Function NETWORKDAYS&lt;/H1&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Power BI in July 2022 has released a new DAX function &lt;A href="https://docs.microsoft.com/en-us/dax/networkdays-dax" target="_self"&gt;Networkdays&lt;/A&gt;.&lt;BR /&gt;I would like to explore the same here. I have uploaded the file used in this blog on &lt;A href="https://github.com/amitchandakpbi/powerbi/blob/main/Networkdays%20Data.xlsx" target="_self"&gt;GitHub&lt;/A&gt;. There are two tables. One with two dates to get networkdays and the second having US holidays for the Year 2022.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Networkdays function can take 4 parameters and the last two are optional&lt;BR /&gt;1. Start Date&lt;BR /&gt;2. End Date&amp;nbsp;&lt;BR /&gt;3. Week End&lt;BR /&gt;4. Holidays&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Power BI has given various weekend options, which you can find in the document. The common one is 1 which means the weekend is Saturday and Sunday&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The traditional method to get the workdays between two dates was&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Work Days Traditional 1 = Countrows(filter( CALENDAR([Date1],Dates[Date2]), WEEKDAY([Date],2) &amp;lt;6 ))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The same can be achieved using&amp;nbsp;&lt;BR /&gt;Work Days 1 = NETWORKDAYS(Dates[Date1],Dates[Date2],1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add holidays using the table, for example, manual table addition&amp;nbsp;&lt;BR /&gt;Work Days 2 = NETWORKDAYS(Dates[Date1],Dates[Date2],1, {Date(2022,1,17)})&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the old method, you need to do&amp;nbsp;&lt;BR /&gt;Work Days Traditional 2 = Countrows(filter( CALENDAR([Date1],Dates[Date2]), WEEKDAY([Date],2) &amp;lt;6 &amp;amp;&amp;amp; not [Date] in {Date(2022,01,17)}))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use a calendar table, I will use the one I loaded into the file. I have more than one column. I am taking only one. I can use distinct to all.&lt;BR /&gt;Work Days = NETWORKDAYS(Dates[Date1],Dates[Date2],1, distinct(Holidays[Date]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the old method, you need to do&lt;BR /&gt;Work Days Traditional = Countrows(filter( CALENDAR([Date1],Dates[Date2]), WEEKDAY([Date],2) &amp;lt;6 &amp;amp;&amp;amp; not [Date] in distinct(Holidays[Date])))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let find the blog &lt;A href="https://amitchandak.medium.com/power-bi-dax-function-networkdays-5c8e4aca38c" target="_self"&gt;here&lt;/A&gt;. Like, Share, and Comment.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 02:59:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Power-BI-DAX-Function-NETWORKDAYS/m-p/2685298#M873</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-08-08T02:59:42Z</dc:date>
    </item>
  </channel>
</rss>

