Forum Discussion
Business days
- 3 years ago
Hi , dave_schultz
Yes, there is no automatic function in M code to find the corresponding national holidays, you do need to create a date table of your corresponding holidays yourself~
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi , dave_schultz
According to your description and the M code , do you mean you want to get the first Work day in this week?
If this , you can try to use this function: Date.StartOfWeek
Then you can use the Date.AddDays() to get the date you want to .
For more information, you can refer to:
Date.StartOfWeek - PowerQuery M | Microsoft Learn
Date.AddDays - PowerQuery M | Microsoft Learn
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi v-yueyunzh-msft,
Yes, that helps, but I also want to include US Holiday's. I think I might need to make a calendar to include those holidays.
thanks,
David
- v-yueyunzh-msft3 years agoCommunity Support
Hi , dave_schultz
Yes, there is no automatic function in M code to find the corresponding national holidays, you do need to create a date table of your corresponding holidays yourself~
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
- dave_schultz3 years agoRegular Visitor
Thank you, v-yueyunzh-msft