The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Dear Community,
My name is Borja and I am currently working as a BI specialist in one european logistics company (which I prefer to not mention).
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.
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.
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.
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.
Oue formula looks like this =WORKDAY(K2,Y2,FILTER(Holidays!A1:X27, Holidays!A1:X1=E2))
Column K is the Processed date.
Column Y is the agreed SLA.
Holidays!A1:X27 is the sheet with all the holidays per country.
Column E is the country.
Does anyone knows how to build this in PowerBI?
Thanks in advance.
The equivalent function in PowerBI is networkdays: https://learn.microsoft.com/en-us/dax/networkdays-dax
you'll need another table of dates with the holidays per country to pass a the final argument to the function.
Hi Vicky,
Thanks for your kind answer.
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
21 | |
18 | |
16 | |
13 |
User | Count |
---|---|
41 | |
38 | |
23 | |
21 | |
19 |