<?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: I am working on removing Holidays from a workday formula in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-am-working-on-removing-Holidays-from-a-workday-formula/m-p/2814854#M89239</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Well, I had a Holidays version in the old school way of doing it:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Net-Work-Days/m-p/367362#M109" target="_blank"&gt;Net Work Days - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2022 19:12:59 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2022-10-03T19:12:59Z</dc:date>
    <item>
      <title>I am working on removing Holidays from a workday formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-am-working-on-removing-Holidays-from-a-workday-formula/m-p/2814804#M89233</link>
      <description>&lt;P&gt;I am working on a calendar and I dont want weekends or holidays as seen below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 18:41:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-am-working-on-removing-Holidays-from-a-workday-formula/m-p/2814804#M89233</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-03T18:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: I am working on removing Holidays from a workday formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-am-working-on-removing-Holidays-from-a-workday-formula/m-p/2814815#M89234</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;NETWORKDAYS&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dax/networkdays-dax" target="_blank"&gt;NETWORKDAYS function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 18:48:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-am-working-on-removing-Holidays-from-a-workday-formula/m-p/2814815#M89234</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-10-03T18:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: I am working on removing Holidays from a workday formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-am-working-on-removing-Holidays-from-a-workday-formula/m-p/2814826#M89235</link>
      <description>&lt;P&gt;That is not working for what I need. I have a column that has total training days.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 18:56:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-am-working-on-removing-Holidays-from-a-workday-formula/m-p/2814826#M89235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-03T18:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: I am working on removing Holidays from a workday formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-am-working-on-removing-Holidays-from-a-workday-formula/m-p/2814854#M89239</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Well, I had a Holidays version in the old school way of doing it:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Net-Work-Days/m-p/367362#M109" target="_blank"&gt;Net Work Days - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 19:12:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-am-working-on-removing-Holidays-from-a-workday-formula/m-p/2814854#M89239</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-10-03T19:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: I am working on removing Holidays from a workday formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-am-working-on-removing-Holidays-from-a-workday-formula/m-p/2816317#M89320</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Extracting weekdays from Calendar date is easy, you just need to do it with WEEKDAY() .&amp;nbsp;But for each country, their holiday is different , you need to remove it manually .&amp;nbsp;Taking Chinese New Year's Day as a column, I created a sample .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In China , the&amp;nbsp;New Year's Day are "2022-01-01", "2022-01-02", "2022-01-03" , at the same time&amp;nbsp;"2022-01-01", "2022-01-02" are the weekend , so in the workdays column , the return value&amp;nbsp;does not include the above three dates .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Create a calculated column like below :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;WorkDate = 
var _daynumber= WEEKDAY('Table'[Date],2)
var _holiday=DATESBETWEEN('Table'[Date],"2022-01-01","2022-01-03")
return if( _daynumber = 6 || _daynumber=7 || 'Table'[Date] in _holiday, BLANK(),'Table'[Date])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;The result is shown as below :&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Ailsa Tao&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 09:04:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-am-working-on-removing-Holidays-from-a-workday-formula/m-p/2816317#M89320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-04T09:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: I am working on removing Holidays from a workday formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-am-working-on-removing-Holidays-from-a-workday-formula/m-p/2826104#M89858</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Those two formulas are not working can you think of anything else.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So what I need is I have a table that has employee start dates and total training days based on curriculum. I need to know the end of training date without holidays or weekends.&amp;nbsp; for example a training class started on 8/15/2022 and it last 24 working days I need to know what the date that training will end on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 14:46:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-am-working-on-removing-Holidays-from-a-workday-formula/m-p/2826104#M89858</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-07T14:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: I am working on removing Holidays from a workday formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-am-working-on-removing-Holidays-from-a-workday-formula/m-p/2838183#M90629</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to provide an accurate formula , hopefully you can provide your sample in the format of a table or pbix file .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Ailsa Tao&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 02:49:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-am-working-on-removing-Holidays-from-a-workday-formula/m-p/2838183#M90629</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-13T02:49:21Z</dc:date>
    </item>
  </channel>
</rss>

