最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

powerbi - Power BI Calculate a date less x working days - Stack Overflow

programmeradmin4浏览0评论

I have a material expiry date column, and a qty column that represents the lead-time (days) to reorder the material.

I would like to create a report that calculates the date that the material should be reviewed. The review date is the expiry date less the (lead-time + 14 days) however, this needs to be calculated as working days, e.g.

  • Expiry date = 09/05/2025
  • Lead-time = 7 (days)
  • Additional Leadtime (being time required for review) = 14 (days)
  • Note: 05/05/2025 is a bank holiday

Review Date needs to calculate as; Expiry Date less (Lead-Time + 14 days + 1 non-working day). Therefore resulting Review Date should be 17/04/2025.

I have a table that lists non-working days, and I created a DAX calendar table with a 'Is Working Day' TRUE/FALSE statement but, don't know how to create the required date calculation. All my search results lead me to a NETWORKDAY calculation giving working days between 2 dates, whereas I want to be able to work back from a date.

I think I'm missing something simple but, any help would be appreciated.

发布评论

评论列表(0)

  1. 暂无评论