The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi all,
I hope someone can help me 🙂
I would like to calculate a "Due date" having an "Order date" without considering Weekends and Holidays.
I will give you a simple example:
Order date = 25/08/2023 (Friday). I need to add 3 working days so the final "Due date" would be 30/08/2023 (this is because I consider the 25, then skip 26 and 27 (Saturday and Sunday) and skip also 28 (Bank Holiday) and finally considering 29 and 30.
I am struggling to create a formula in dax or a calculated column.
Can someone help me?
thank you.
On top of "old-school" way, newly-released WINDOW functions, OFFSET() to be exact here in your case, come into play in measures and calculated columns.
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
hi @ThxAlot ,
thank you for your help. The formula is working for any working day but if I want to offset a "Saturday", It does return me "Blank".
For thjs order created on saturday the deadline should be next monday but the offset formula is returning me Blank.
Please find below the formula I am using:
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
21 | |
12 | |
10 | |
7 |