COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Raghuvir on 20 Feb 2015 03:32:17 AM

Title: Crosstab Output Query
Post by: Raghuvir on 20 Feb 2015 03:32:17 AM
Hi All,

I have a crosstab with ,employee id,employee name,pay type,project id in the rows, date in the columns and entered hours in the measure. Please find the attached file of the crosstab.

We want the employee id and employee name to repeat for every new paytype and project ID.Please find the attached image where i have placed the expected output we want. Would like to know if this would be possible using a crosstab ?

Regards,
Raghuvir
Title: Re: Crosstab Output Query
Post by: bdbits on 20 Feb 2015 04:36:25 PM
Out of curiosity, I googled and experimented a bit. This only seems to work with a relational package, otherwise I think you might be out of luck. If you are using relational, try this.

Worked for me, with the relational package caveat. As much as I'd like to take credit, I synthesized these steps from a couple of posts by others.

If your only reason to do this is for export to Excel, and you always want it that way, I believe there is a system-wide setting in a properties file to accomplish this automatically whenever exporting.
Title: Re: Crosstab Output Query
Post by: Raghuvir on 23 Feb 2015 01:18:57 AM
Thanks bdbits

will try the steps as you have guided us.

yes we want to export it to excel, thats why we want it that way.

Regards