Hello:
I have designed a crosstab and I am getting duplicate values. The cross tab has "Call_Date_Text" as the top header and "SYSTEM" on the left side.
QUERY in WEB Intelligence
SELECT
A.CALL_DATE,
A.SYSTEM,
A.TRUEFALSE,
A.TOTAL_COUNT,
A.CALL_DATE_TEXT
FROM
(
select to_date(to_char(calltimestamp_local,'YYYY-MM-DD'),'YYYY-MM-DD') as Call_Date,
substr(SOMESTRING,5,4) as SYSTEM, TRUEFALSE, count(*) as total_count from FACT_TABLE
where substr(SOMESTRING,5,4) in ('1000','1301','1312','1315','1316','1317','1318')
group by to_date(to_char(calltimestamp_local,'YYYY-MM-DD'),'YYYY-MM-DD'), substr(SOMESTRING,5,4), TRUEFALSE
) A
ACTUAL DATA FROM THIS QUERY (using query tool)
CALL_DATE SYSTEM TRUEFALSE TOTAL_COUNT
28-JAN-2013 1000 0 33,224
28-JAN-2013 1000 1 14,444
29-JAN-2013 1000 0 38,891
29-JAN-2013 1000 1 16,980
30-JAN-2013 1000 0 6,891
30-JAN-2013 1000 1 3,095
Results in WEB Int Crosstab:
SYSTEM 28-JAN-2013 29-JAN-2013 30-JAN-2013
1000 3,095 3,095 3,095
1000 6,891 6,891 6,891
1000 14,444 14,444 14,444
etc. 6 rows in total, duplicating all the values
I would expect
SYSTEM 28-JAN-2013 29-JAN-2013 30-JAN-2013
1000 47,668 55,871 9,986
Can you help me with what is going on? I created the crosstab by dragging and dropping the fields until it said "drag here to create crosstab"....
Thanks