Add time to existing total time column

We have a piece of equipment that weโ€™re trying to track while itโ€™s in operation. We have a โ€œStartโ€ and โ€œStopโ€ action to capture respective timestamps, and a โ€œTotal Timeโ€ column to calculate total run time.

The equipment can run multiple times a day with variable amount of stops, so we want to be able to hit โ€œStart/Stopโ€ multiple time with the โ€œTotal Timeโ€ column updating with the actual time the equipment was running.

Is this possible without adding dozens of โ€œTotal Timeโ€ columns for each occurrence?..

0 6 983
6 REPLIES 6

@Dialect_Junk
You can set a [START] column (Type: Time) and [CHANGE TIMESTAMP] column (Type: Change Timestamp). Bind this [CHANGE TIMESTAMP] column to watch any column data change you want. Than your you can calculate your [TOTAL TIME] column with an expression i.e.

TIME([CHANGE TIMESTAMP]) - [START]

Will this provide a running total to the [Total Time] column?

Say that today I have 2 sets of start/end times for my equipment:

I hit โ€œStartโ€ at 9am, โ€œEndโ€ at 11am for 2 hours.
I hit โ€œStartโ€ at 2pm, โ€œEndโ€ at 6pm for 4 hours.

Will my [Total Time] update to 6 hours?

@Dialect_Junk
You can do it this way:
You have [START] and [END] columns. Create 2 actions which will record a datetime stamp to these columns with Data: change a value of a column & use NOW() as a value.
Create 2 Virtual Columns in your table:
(1) STEP_TOTAL with an expression of TIME([END]) - TIME([START])
(2) TOTAL with an expression of [TOTAL] + [STEP_TOTAL]

Levent, thanks for the suggestion. I gave that I try but the Virtual Column [TOTAL] is adding my [Total Time] column to the [STEP_TOTAL] column, essentially just doubling my [Total Time] column. Iโ€™m sure Iโ€™m missing somethingโ€ฆ

1X_14a16e60d2058fc4ca0f3d4bb2a68c9c45d0269f.png

This was interesting request from Mr @LeventK so I made a small sample app how you can do that. It will calculate total as minutes. The app name is โ€œIN and OUTโ€ and you can find it from hereโ€ฆ https://www.appsheet.com/portfolio/531778

Thank you, both!

Top Labels in this Space