AVERAGE |
Take the average of the data points |
select AVG([NR1_LVL]) from [09232008.CSV] where ([$date] >= #09/23/2008# AND [$date] <= #09/23/2008#) and [NR1_LVL] is not null and ([$time] > #00:00:00# AND [$time] <= #23:59:59#)
|
TOTAL |
Take the sum total of all values |
select SUM([NR1_LVL]) from [09232008.CSV] where ([$date] >= #09/23/2008# AND [$date] <= #09/23/2008#) and ([$time] > #00:00:00# AND [$time] <= #23:59:59#) and [NR1_LVL] is not null
|
MINIMUM |
Get the minimum value |
select MIN([NR1_LVL] + 0) from [09232008.CSV] where ([$date] >= #09/23/2008# AND [$date] <= #09/23/2008#) and ([$time] > #00:00:00# AND [$time] <= #23:59:59#) and [NR1_LVL] is not null
|
MAXIMUM |
Get the maximum value |
select MAX([NR1_LVL] + 0) from [09232008.CSV] where ([$date] >= #09/23/2008# AND [$date] <= #09/23/2008#) and ([$time] > #00:00:00# AND [$time] <= #23:59:59#) and [NR1_LVL] is not null
|
FIRST |
Get the first value |
select TOP 1 ([NR1_LVL]) from [09232008.CSV] where ([$date] >= #09/23/2008# AND [$date] <= #09/23/2008#) and ([$time] > #00:00:00# AND [$time] <= #23:59:59#) and [NR1_LVL] is not null Order by [$date], [$time]
|
LAST |
Get the last value |
select TOP 1 ([NR1_LVL]) from [09232008.CSV] where ([$date] >= #09/23/2008# AND [$date] <= #09/23/2008#) and ([$time] > #00:00:00# AND [$time] <= #23:59:59#) and [NR1_LVL] is not null Order by [$date] DESC, [$time] DESC
|
DIFF |
Calculate the difference between the first and last values. If the first value is larger than the second then it will perform the following calculation: (10 ^ (Ceil(LOG(first_value) / LOG(10)))) - first_value + last_value
Ceil will cause the value to round up |
- Get FIRST value
- Get LAST value
- RESULT = LAST - FIRST
- IF RESULT < 0 THEN (10 ^ (Ceil(LOG(first_value) / LOG(10)))) - first_value + last_value
|
RANGE |
Calculate the absolute value of the difference between the minimum and maximum values |
- Get MIN value
- Get MAX value
- Get ABS(MIN - MAX)
|
COUNT |
Counts the number of data points. |
select COUNT([NR1_LVL]) from [09232008.CSV] where ([$date] >= #09/23/2008# AND [$date] <= #09/23/2008#) and ([$time] > #12:00:48# AND [$time] <= #23:59:00#) and [NR1_LVL] is not null
|
TIMEGT(x) |
Counts the number of data points greater then 'x'. NOTE: You must know the data logging frequency in the CSV files to understand the units this function returns. Typically, data is logged minutely in the CSV files, therefore this function returns the number of minutes. However, if data in the CSV files is logged every 5 minutes, this function returns the number of 5 minute periods the value is greater than x. You could use a Scale Factor of 5 to convert to minutes. |
select COUNT([NR1_LVL]) from [09232008.CSV] where ([$date] >= #09/23/2008# AND [$date] <= #09/23/2008#) and ([$time] > #12:00:48# AND [$time] <= #23:59:00#) and [NR1_LVL] is not null AND [NR1_LVL] > x
|
TIMELT(x) |
Counts the number of data points less than 'x'. NOTE: You must know the data logging frequency in the CSV files to understand the units this function returns. Typically, data is logged minutely in the CSV files, therefore this function returns the number of minutes. However, if data in the CSV files is logged every 5 minutes, this function returns the number of 5 minute periods the value is less than x. You could use a Scale Factor of 5 to convert to minutes. |
select COUNT([NR1_LVL]) from [09232008.CSV] where ([$date] >= #09/23/2008# AND [$date] <= #09/23/2008#) and ([$time] > #12:00:48# AND [$time] <= #23:59:00#) and [NR1_LVL] is not null AND [NR1_LVL] < x
|
TIMEEQ(x) |
Counts the number of data points equal to 'x'. NOTE: You must know the data logging frequency in the CSV files to understand the units this function returns. Typically, data is logged minutely in the CSV files, therefore this function returns the number of minutes. However, if data in the CSV files is logged every 5 minutes, this function returns the number of 5 minute periods the value is equal to x. You could use a Scale Factor of 5 to convert to minutes. |
select COUNT([NR1_LVL]) from [09232008.CSV] where ([$date] >= #09/23/2008# AND [$date] <= #09/23/2008#) and ([$time] > #12:00:48# AND [$time] <= #23:59:00#) and [NR1_LVL] is not null AND [NR1_LVL] = x
|
INVENTORY |
Running total of used volume. Only decreases in value are counted. Use the DEADBAND option in Hach WIMS variable setup to eliminate erroneous readings due to noise or vibrations. |
select [NR1_LVL] from [09232008.CSV] where ([$date] >= #09/23/2008# AND [$date] <= #09/23/2008#) and ([$time] > #00:00:00# AND [$time] <= #23:59:59#) and [NR1_LVL] is not null
Goes through each record to determine whether to add the value to a running total or not. Based on whether the value has decreased and the decrease was greater than the DEADBAND. |
MAXTIME |
The time the maximum value occurred (formatted as mm/dd/yyyy hh:mm:ss). ONLY works with Text Parameters. |
|
MINTIME |
The time the minimum value occurred (formatted as mm/dd/yyyy hh:mm:ss). ONLY works with Text Parameters. |
|