【发布时间】:2017-11-21 18:44:52
【问题描述】:
我正在尝试将事件的有效持续时间计算为计算列,例如: [事件总持续时间] - [与事件重叠的非办公时间] - [办公时间内系统停机时间] 我不知道如何做到这一点
办公时间表:
date - office hours start time - office hours end time - is working day
01/01/2017 - 08:00 am - 08:00 pm - 0
02/01/2017 - 08:00 am - 08:00 pm - 1
...
09/01/2017 - 08:00 am - 08:00 pm - 1
10/01/2017 - 08:00 am - 08:00 pm - 1
11/01/2017 - 08:00 am - 08:00 pm - 1
...
系统停机时间表:
date - system downtime start time - system downtime end time
01/01/2017 - 08:17 am - 9:43 am
10/01/2017 - 7:00 pm - 8:00 pm
事件表:
EventID - start datetime - end datetime - effective duration
1 - 01/01/2017 7:40 am - 01/01/2017 8:40 am - 0; Comment: 0 is because though there was a dowtime of the system overlapping this event, the event itself was during non working day
2 - 09/01/2017 7:40 am - 11/01/2017 11:00 am - 24; Comment: [total duration of event] - [out of office hours overlapping the event] - [system downtime during office hours] = 24 hours
3 -
我希望此有效持续时间计算列位于 EventsTable 中
正如你所想象的那样,有很多重叠和时间智能正在发生,我就是无法理解这一点。
我正在运行 PowerPivot for Excel 2013
【问题讨论】:
-
有人吗?我知道这是一个具有挑战性的问题,但它是可行的,不是吗?
标签: excel datetime excel-2013 powerpivot dax