Total Hours (in duration format) is calculated by clocking in and out
Planned Downtime Duration copies the duration in Total Hours if the Downtime Category is “Planned Downtime” in the same row
Unplanned Downtime Duration column copies the duration in Total Hours if the Downtime Category is “Unplanned Downtime” in the same row
Remarks is either “Transferred” or " "
I want sum up the Planned Downtime Duration column when the “Remarks” column is blank in a virtual column, and then pass this value into another table’s column when a form for that table is submitted.
I have pasted the following expression in the virtual column:
It does not work and says “SUM function is used incorrectly”.
I have tried to put LIST() but it does not work either.
What could be the problem here?
P.S. I want to calculate the total downtime according to category during a shift (ex: 7 am to 7pm) in a day and put them in another table that states other details regarding the shift. Once the values are put in the other table, I want to mark all downtime duration involved as “Transferred” in the Remarks column.
Also, I would like to ask if the dataset gets big, will this expression cause lagging?
And this is probably a question best suited under another topic, but here it is anyway. Any idea how I can execute an action that marks the Remark column to “Transferred” after a form (for another table) containing the sum of downtime duration is submitted? It seems that I cant execute a group of actions on two separate tables.
Depends on the size of the dataset. Supposing your downtime log table stays under 1000-3000 rows, I don’t envision a tremendous impact, but larger than that, and I would consider a slightly different architecture.
Regarding your second question, you will need two actions that execute an action on a set of rows that are both linked with the table you plan to trigger the actions on. You will then need a grouped action that performs both preceding actions.