<?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 Replicating WORKDAY formula with holidays per country in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replicating-WORKDAY-formula-with-holidays-per-country/m-p/3654163#M141575</link>
    <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My name is Borja and I am currently working as a BI specialist in one european logistics company (which I prefer to not mention).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, we have sold some logistic services to a customer, and we have a signed SLA agreement with the customer depending on the country. What I am trying to build is a column that gives me the Guaranteed Delivery Date for the parcels depending on when they were processed and where are they going to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example lets assume a parcel processed on January 23th going to UK has a SLA of 4 days. This means it should be delivered in 4 working days, therefore the Guaranteed Delivery Date should be January 29th.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first problem I am facing is how to ignore weekends, in Excel I use WORKDAY formula but this doesn't exist in Power BI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My second issue is how to also take into account bank holidays per country. In Excel we use a FILTER formula so it only adds the bank holidays for the destination country.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oue formula looks like this =WORKDAY(K2,Y2,FILTER(Holidays!A1:X27, Holidays!A1:X1=E2))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column K is the Processed date.&lt;/P&gt;&lt;P&gt;Column Y is the agreed SLA.&lt;/P&gt;&lt;P&gt;Holidays!A1:X27 is the sheet with all the holidays per country.&lt;/P&gt;&lt;P&gt;Column E is the country.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone knows how to build this in PowerBI?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2024 13:37:05 GMT</pubDate>
    <dc:creator>BenzeBenze</dc:creator>
    <dc:date>2024-01-23T13:37:05Z</dc:date>
    <item>
      <title>Replicating WORKDAY formula with holidays per country</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replicating-WORKDAY-formula-with-holidays-per-country/m-p/3654163#M141575</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My name is Borja and I am currently working as a BI specialist in one european logistics company (which I prefer to not mention).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, we have sold some logistic services to a customer, and we have a signed SLA agreement with the customer depending on the country. What I am trying to build is a column that gives me the Guaranteed Delivery Date for the parcels depending on when they were processed and where are they going to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example lets assume a parcel processed on January 23th going to UK has a SLA of 4 days. This means it should be delivered in 4 working days, therefore the Guaranteed Delivery Date should be January 29th.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first problem I am facing is how to ignore weekends, in Excel I use WORKDAY formula but this doesn't exist in Power BI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My second issue is how to also take into account bank holidays per country. In Excel we use a FILTER formula so it only adds the bank holidays for the destination country.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oue formula looks like this =WORKDAY(K2,Y2,FILTER(Holidays!A1:X27, Holidays!A1:X1=E2))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column K is the Processed date.&lt;/P&gt;&lt;P&gt;Column Y is the agreed SLA.&lt;/P&gt;&lt;P&gt;Holidays!A1:X27 is the sheet with all the holidays per country.&lt;/P&gt;&lt;P&gt;Column E is the country.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone knows how to build this in PowerBI?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 13:37:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replicating-WORKDAY-formula-with-holidays-per-country/m-p/3654163#M141575</guid>
      <dc:creator>BenzeBenze</dc:creator>
      <dc:date>2024-01-23T13:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Replicating WORKDAY formula with holidays per country</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replicating-WORKDAY-formula-with-holidays-per-country/m-p/3655404#M141613</link>
      <description>&lt;P&gt;The equivalent function in PowerBI is networkdays:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dax/networkdays-dax" target="_blank"&gt;https://learn.microsoft.com/en-us/dax/networkdays-dax&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;you'll need another table of dates with the holidays per country to pass a the final argument to the function.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 02:36:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replicating-WORKDAY-formula-with-holidays-per-country/m-p/3655404#M141613</guid>
      <dc:creator>vicky_</dc:creator>
      <dc:date>2024-01-24T02:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Replicating WORKDAY formula with holidays per country</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replicating-WORKDAY-formula-with-holidays-per-country/m-p/3656416#M141660</link>
      <description>&lt;P&gt;Hi Vicky,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your kind answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I know, NETWORKDAYS will give you the number of working days between two days, and what I need is to get the resulting date after adding X working days to a date.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 10:05:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replicating-WORKDAY-formula-with-holidays-per-country/m-p/3656416#M141660</guid>
      <dc:creator>Benzebenze2</dc:creator>
      <dc:date>2024-01-24T10:05:27Z</dc:date>
    </item>
  </channel>
</rss>

