I am unable to sum phone call times that are being stored in a SQL fact table
I have a SQL table of phone call times, by person, which are being used in a Cognos Analytics Data Module.
I would like to use this data in a crosstab and report a total call time in HH:MM:SS for each person.
SQL column is formatted time(0) when I try to Total the time, Cognos throws a [MSR-VRF-1202 The column "Call Length" has the data type "time" and can't be aggregated] error.
What is the correct way to display a total of Call Times.
UPDATE
I have managed to overcome half the problem by using a number of query calculations in Cognos Anaytics. I updated the SQL fact table to include a new measure of time in seconds then used the query items below.
HH as FLOOR(TOTAL([CALLTIMEINSECONDS])/3600)
MM as FLOOR(([CALLTIMEINSECONDS]-[HH]*3600)/60)
SS as [CALLTIMEINSECONDS]-([HH]*3600)-([MM]*60)
HH1 as IF ([HH]<10) THEN ('0'+CAST([HH],VARCHAR(4))) ELSE (CAST([HH],VARCHAR(4)))
MM1 as IF (MM<10) THEN ('0'+CAST(MM,VARCHAR(2))) ELSE (CAST(MM,VARCHAR(2)))
SS1 as IF (SS<10) THEN ('0'+CAST(SS,VARCHAR(2))) ELSE (CAST(SS,VARCHAR(2)))
ALL TIME as [HH1]+':'+[MM1]+':'+[SS1]
This works in individual Crosstabs rows however will not summarise and also does not work on any charts.