Assistance with Time Ageing
Forums
Hi Brian,
How am I able to calculate the time age within the records in the database.
From the attached screen, I would like to find out the age time between row2 & row3. How am I suppose to do that.
I can do that in Excel with the =text(B3-B2,"hh:mm:ss") command, what's the @function to be used in IDEA?
Any help would be much appreciated here.
Thank you in advance.
William
William, I have attached the
William, I have attached the imd file that I created so hopefully it will help you out. It was done on an older version of IDEA 8.4 so you shouldn't have any problem reading it. If it doesn't help any chance you could post a sample file so I can try and figure out what the problem might be or post a screen grab of the file and the equation?
Thanks and good luck.
Hi Brian,
Hi Brian,
Thanks for the shared file. It works, thank you very much!
However, one of my time field shown age time with 1368 as the 2nd time compared with the 1st time is after 12am. How am I able to put the parameter just for this 1 record / row here. Please refer my attached screen for more info.
Thanks in advance. William
Hi William, you can use the
Hi William, you can use the @agetime function along with the @getNextValue function. The @GetNextValue and @GetPreviousValue allow you to read the values in the adjoining records. When using either of these functions you would have the name of the field within "". Also adding indexes after could screw-up your results. I would suggest first getting the file in the proper order by using the sort command and then using these functions.
@AgeTime(TIME, @GetNextValue("TIME"))