Hey all,
I have a large data table that stores process data. The table has a process_start_time column (dateTime value) and a total_process_time column (double). I ultimately need to get the sum of the total_process_time column between 2 dates which I can do using the table's compute method. (dT.Compute(filter,expression))
My problem is that there is a row in the data table for each work_order (another column), and multiple work orders can be run in a single process. When this occurs, I get multiple rows (2-5) that have identical process_start_time value and identical total_process_time values, but I only want to count process time for one of them because they were all run in the same process.
I thought about selecting distinct(process_start_time) in the compute method, but it doesn't look like the method's filter property handles distinct http://msdn.microsoft.com/en-us/libr...xpression.aspx
I know I can loop through the rows manually, but is there way to filter this table more gracefully?
thanks
kevin
I have a large data table that stores process data. The table has a process_start_time column (dateTime value) and a total_process_time column (double). I ultimately need to get the sum of the total_process_time column between 2 dates which I can do using the table's compute method. (dT.Compute(filter,expression))
My problem is that there is a row in the data table for each work_order (another column), and multiple work orders can be run in a single process. When this occurs, I get multiple rows (2-5) that have identical process_start_time value and identical total_process_time values, but I only want to count process time for one of them because they were all run in the same process.
I thought about selecting distinct(process_start_time) in the compute method, but it doesn't look like the method's filter property handles distinct http://msdn.microsoft.com/en-us/libr...xpression.aspx
I know I can loop through the rows manually, but is there way to filter this table more gracefully?
thanks
kevin