COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Arsenal on 06 Feb 2008 03:34:59 PM

Title: Grouping but not displaying the query item
Post by: Arsenal on 06 Feb 2008 03:34:59 PM
Hi All,

Is there a way to use a query item (for example transaction code) that can be used to group a report by (relational FM model), but not show this query item i.e. group the report by transaction code but not have transaction code show up in the report body.

Box Type None does not do it. Is there a way, at the report level, without editing the SQL?

Thanks
Title: Re: Grouping but not displaying the query item
Post by: rockytopmark on 06 Feb 2008 04:59:43 PM
Curious... why does "Box Type = none" not do it?
Title: Re: Grouping but not displaying the query item
Post by: Suraj on 06 Feb 2008 05:31:32 PM
That's what I was thinking...
Title: Re: Grouping but not displaying the query item
Post by: Arsenal on 08 Feb 2008 02:24:12 PM
If I add Transaction Code, for example, to the report body, then group it by that, and then set its box type to null, then it just disappears from the layout and when the report is run.
Title: Re: Grouping but not displaying the query item
Post by: Suraj on 08 Feb 2008 03:06:16 PM
If you can't see that item in the report, how will you know that it is grouped under that item?
For example: you group by product line for product type, when you remove product line from report, the product type will appear as you define them to appear. You won't know if product type is grouped for product line or not.
Better way is to sort the product type by product line.
In your case, sort the other columns depending upon transaction code.
Title: Re: Grouping but not displaying the query item
Post by: Arsenal on 08 Feb 2008 04:14:49 PM
that's what I was saying ....that's why setting the box type to none does not work

sorting wouldn't be the same as group ....what I need to do is group the report by transaction code without having transaction code show in the report.
Title: Re: Grouping but not displaying the query item
Post by: reddy_143 on 08 Feb 2008 04:22:47 PM
Hi,

U can do it ....just cut the column from the report after grouping..

I think it will work

Regards

Suman
Title: Re: Grouping but not displaying the query item
Post by: MFGF on 28 Mar 2008 05:40:18 AM
Hi,

You need to do two things:
1. Select the List object, go to the Grouping and Sorting property, and define the grouping on your item.
2. Go to the Properties property and check the item as being a property of the list.

Regards,

MF.