COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: elroy on 09 Jun 2011 09:20:37 AM

Title: Empty crosstab
Post by: elroy on 09 Jun 2011 09:20:37 AM
Hi all,
I have a stupid issue:

I created two queries and one of them as a SQL query tpe.
I created a third query where I would like to join the two queries.
Next I generated a new list with the third query as basis. The list works and shows me all needed data.
But if I want to replace the list by a crosstab the intersection becomes empty.

Does anybody know why?
Is a further setting necessary?

Many thanks and Regards,
elroy
Title: Re: Empty crosstab
Post by: Lynn on 09 Jun 2011 11:20:45 AM
The item in the intersection must be a number. Could it be that you are selecting some other type like a string or a date?
Title: Re: Empty crosstab
Post by: elroy on 09 Jun 2011 01:36:11 PM
The item in the intersection is a "count" (so a number) from the SQL statement.
In addition I tried following:
1. Change the Data Format of the intersection properties to Number.
2. Add a cast clause (to integer) to the intersection data item

But nothing of this works :(
Title: Re: Empty crosstab
Post by: blom0344 on 09 Jun 2011 01:49:57 PM
My addition to Lynn's reply would have been that - in any case - an aggregate has to be set, otherwise an empty crosstab is the result (even with numerical values) So what is the aggregate property setting in Report Studio?
Title: Re: Empty crosstab
Post by: elroy on 09 Jun 2011 02:20:28 PM
The aggregate function was on "Automatic" ..
I changed it to "Count" and it works now :)  :)

Many thanks,
elroy