<?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: NETWORKDAYS with filtered column of dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/NETWORKDAYS-with-filtered-column-of-dates/m-p/2645134#M77804</link>
    <description>&lt;P&gt;Use VALUES instead,&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Days to Xmas = NETWORKDAYS( TODAY(), DATE(2022, 12, 25), 1, VALUES('bank-holidays'[events.date]) )&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 18 Jul 2022 14:03:00 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2022-07-18T14:03:00Z</dc:date>
    <item>
      <title>NETWORKDAYS with filtered column of dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/NETWORKDAYS-with-filtered-column-of-dates/m-p/2644767#M77786</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello Wonderful Community and a Happy Monday to you all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully a fairly quick and simple question for you here. I'm pretty excited about NETWORKDAYS hitting Power BI and so was hoping to use it in combination with a UK .gov API of Holidays.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've succesfully pulled in the table from the API and placed a few filters on it to get just this year's Bank Holidays, and thought I'd test NETWORKDAYS in the run-up to Christmas (on the hottest day ever!).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per&amp;nbsp;&lt;A href="https://hello-safe.co.uk/business-insurance/tools/working-days-calculator," target="_blank" rel="noopener"&gt;https://hello-safe.co.uk/business-insurance/tools/working-days-calculator,&lt;/A&gt;&amp;nbsp;I'm expecting the result of 114 for England and Wales and 113 for Scotland.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per the documentation, I'm using the following for my DAX column;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;daysToChristmas = 
VAR _BankHolidays = {'bank-holidays'[events.date]}
RETURN NETWORKDAYS(TODAY(), DATE(2022,12,25), 1, _BankHolidays)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this is my results (noting Scotland is one day out and the tables are correct). It's as if it's only subtracting one holiday.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate this can be done via other means, but really want to crack this with this DAX function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help, greatly appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: API endpoint is here, allows anonymous access:&lt;/P&gt;&lt;P&gt;&lt;A title="API endpoint" href="https://www.gov.uk/bank-holidays.json" target="_self"&gt;https://www.gov.uk/bank-holidays.json&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 12:13:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/NETWORKDAYS-with-filtered-column-of-dates/m-p/2644767#M77786</guid>
      <dc:creator>DAX_Defender</dc:creator>
      <dc:date>2022-07-18T12:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: NETWORKDAYS with filtered column of dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/NETWORKDAYS-with-filtered-column-of-dates/m-p/2645134#M77804</link>
      <description>&lt;P&gt;Use VALUES instead,&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Days to Xmas = NETWORKDAYS( TODAY(), DATE(2022, 12, 25), 1, VALUES('bank-holidays'[events.date]) )&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 18 Jul 2022 14:03:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/NETWORKDAYS-with-filtered-column-of-dates/m-p/2645134#M77804</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-07-18T14:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: NETWORKDAYS with filtered column of dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/NETWORKDAYS-with-filtered-column-of-dates/m-p/2645226#M77813</link>
      <description>&lt;P&gt;Absolute legend, worked like a charm. Thank you very much for the quick response.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 14:46:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/NETWORKDAYS-with-filtered-column-of-dates/m-p/2645226#M77813</guid>
      <dc:creator>DAX_Defender</dc:creator>
      <dc:date>2022-07-18T14:46:06Z</dc:date>
    </item>
  </channel>
</rss>

