Forum Discussion
Add working days to a Date
Hi, I have a date and I have to add to it 15 working days (excluding Weekends)
Now I am using this in power query:
Date.AddDays([Date],15) which is adding 15 days but including weekends.
Any suggestion?
Thanks a lot
Anonymous
Check the attached file. Provide Start Date and Work Days to Add, It will add workdays. currently, it excluded SAT and SUN.You can download the file: HERE
______________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon on the right if you like this reply 🙂
10 Replies
- Fowmy
Super User
Anonymous
Check the attached file. Provide Start Date and Work Days to Add, It will add workdays. currently, it excluded SAT and SUN.You can download the file: HERE
______________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon on the right if you like this reply 🙂
- AnonymousNot applicable
Thanks for your post this is working for me. I have one mre concern if i need to add multiple work days based on the condition then how to add it.
Thanks in advance!!
- AnonymousNot applicable
Sorry to say this, this i have implemented and it is working only for few data and for remaining it is showing one day less interms of working days. Could you pls help me on this topic.
- JsomkulFrequent Visitor
Thank you for sharing! Your code saves me a ton of time.
- amitchandak
Super User
Anonymous , refer this blog how to do that
- AnonymousNot applicable
Hi, that can helps, thanks!
But I need a column, not a measure. Is this possible to use the example you have provided to create such a column?
Thnks
- Pragati11
Super User
Hi Anonymous ,
Chek the following thread for adding as a column excluding weekends:
https://community.powerbi.com/t5/Desktop/Add-DateTime-excluding-weekends/td-p/653186
Thanks,
Pragati
- Greg_Deckler
Community Champion
Anonymous - See if this helps: https://community.powerbi.com/t5/Quick-Measures-Gallery/Net-Work-Days/m-p/367362#M109
- Icey
Community Support
Hi Anonymous ,
Is this problem solved?
If it is solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
If not, please let me know.
Best Regards,
Icey
- MykytaShlopakNew Member
HI,
Could you please share file once again?
There is empty via provided link.
Thanks!