Internal Functions (Count, Min, Max...)
Posted: Tue Feb 15, 2011 11:35 am
Hi!
How should these functions be used...
For example, I have a table (lets say MachineStatus), in MachineStatus i have two columns (LogDt = Logdate (1 every minute), Status ("1" if up running)).
So now I would like to print in a report how many Minutes in a day the machine has been up running
(I know there is 1440 minuts per day so it would be simpel as Count(Status = 1)/60 + ":" + Count(Status = 1)%60)...
But I cant get the Count function to work, how shuold I implement this
And the Min/Max function I cant get to function as I expect them (the column holding the status varible is a charchar, so do I need to tryPrase it like {Max(TryParseDouble(A7A3_Drift.Status))})...???
Best Regards
Edmund
How should these functions be used...
For example, I have a table (lets say MachineStatus), in MachineStatus i have two columns (LogDt = Logdate (1 every minute), Status ("1" if up running)).
So now I would like to print in a report how many Minutes in a day the machine has been up running
(I know there is 1440 minuts per day so it would be simpel as Count(Status = 1)/60 + ":" + Count(Status = 1)%60)...
But I cant get the Count function to work, how shuold I implement this
And the Min/Max function I cant get to function as I expect them (the column holding the status varible is a charchar, so do I need to tryPrase it like {Max(TryParseDouble(A7A3_Drift.Status))})...???
Best Regards
Edmund