Forum Discussion

Re: Stop counting duration

LB,

I think the most reliable way to record the date that the status is changed will be to change that status field properties to log changes. That way the date will be captured with the status. Then we will need a formula to par so the most current status and another formula to parse out the date of the most current status.

field properties to log changes. That way the date will be captured with the status. Then we will need a formula to par so the most current status and another formula to parse out the date of the most current status.

I am going to paste damn sheet notes to myself for how to parse out who did the update. What the most recent update was, and the date of the most recent update. So the idea is that you would change your existing field properties to log changes. Leave it at the default setting, which is too long new items at the bottom. And do not capture the time. 

Parsing Append Only Fields

so... if you have a text field set to Log Changes where the new entries act in the default manner which is to be at the bottom of the updates, here are some formuals to use to parse out the values from the most recent entry.  I am also assuming that you are logging the date and not the date and time.

Most recent value (formula text field type)

Trim(Right([my update field],"]"))

Date of most recent update (this needs to be a formula date field)

ToDate(Left(Right([my update field],"["),9))

Who did the most recent update (formula text field type)

Trim(NotLeft(Left(Right([my update field],"["),"]"),9))

then you should be able to use Garry's formula. Post back if you get stuck.



------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------

2 Replies

  • LB's avatar
    LB
    Qrew Cadet

    Hey Mark, 

    I'm not needing to record the date - the date is manually entered and then once that date is entered I have a formula field that tracks the number of days that have passed since that date was entered. 

    Then as the record Approval Status is updated by the user selecting completed, or selecting completed previous plan I no longer need the field tracking the # to continue to count. 



    ------------------------------
    LB
    ------------------------------
    • Like Gary says, there is no magic way to have it. "stop counting".  

      Rather, you are calculating the duration between two dates and therefore you need to know when the start date is, (that is easy because you have that field) but the question is when the end date is.  The end date is either today which keeps moving or another date that needs to be recorded somehow as an end date.  

      So either you need to change your field property to be an Append Only" and log changes,  and therefore you will get the end date from there, or else you will have to have a Pipeline run to detect when the record is saved, and the status changes to a certain status and records the current date into a field.

      My suggestion is to make your status field be set to Log changes.



      ------------------------------
      Mark Shnier (Your Quickbase Coach)
      mark.shnier@gmail.com
      ------------------------------