Queue Time Calculation in PowerPivot

jmhutchi

New Member
Joined
Feb 22, 2015
Messages
4
Hi all: First time poster, long time lurker

I am using powerpivot to analyze production lot history. My columns are these:

Lot Number, Split, Major Step, Substep, Operator, DateTimeIn, DateTimeOut

The dataset has multiple lot numbers and split processed simultaneously, so analysis needs to be filtered for those contexts.

I can easily calculate the process time for each substep:
SubStepProcessTime := 1.0*(DateTimeOut-DateTimeIn)

I want to calculate the queue time for each substep, which is:
SubStepQueueTime := 1.0*(DateTimeIn (Current Row) - DateTimeOut (previous step))

I'm stumped.

One idea I had that I dont know how to implement: Is there some way to find the next most recent DateTimeOut less than the DateTimeIn(Current Row)?

Any ideas?
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Welcome jmhutchi,
I'd go for a calculated column:
=[DateTimeIn]-CALCULATE(MAX([DateTimeOut]); FILTER(Table; [DateTimeIn]<EARLIER([DateTimeIn])))

This only works if your the previous step can be identified as the one that has the "earliest" start date before you current step (your production runs in sequence). Otherwise you should consider creating an index that clearly identifies the relevant order.

hth, Imke
 
Upvote 0

Forum statistics

Threads
1,224,074
Messages
6,176,220
Members
452,715
Latest member
DebbieCox

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top