COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Report Studio => Topic started by: hem852 on 06 May 2009 07:17:14 AM

Title: Hiding empty columns in crosstab report
Post by: hem852 on 06 May 2009 07:17:14 AM
Hi

I have a crosstab report.

Accross the top I have a dimension of 'Legal Type' and under that a dimension named 'Game Name'. (Each Game Name fits into a Legal Type).

The 'Game Names' Dimension creates a number of columns relating to different Game Names under the individual Legal Types.

The problem is under legal types I get a column for every game name displayed, regardless of whether it fits into that legal type. The actual data values only show under the correct legal type. If the Game Name does not fit into a Legal type I get the column header but no data.

Is there a way to ensure that the Game Names only display under their appropriate Legal Types or failing that is there a way to hide Game Names with Empty columns?

TIA

John
Title: Re: Hiding empty columns in crosstab report
Post by: CognosPaul on 06 May 2009 07:37:00 AM
Instead of pulling the level directly into the crosstab, try something like this:
filter([Cube].[Dimension].[Hierarchy].[Level],[Cube].[Measures].[Measure]>0)
Title: Re: Hiding empty columns in crosstab report
Post by: david.stachon on 08 May 2009 12:41:09 AM
...or better yet, if you're on 8.4 use zero suppress.
Title: Re: Hiding empty columns in crosstab report
Post by: hem852 on 11 May 2009 10:23:24 AM
Thanks Gents,

Sadly David we are still on 8.2 :(

Paul, this worked great thank you.
Title: Re: Hiding empty columns in crosstab report
Post by: ramya on 06 May 2016 06:46:52 AM
Hi!..
   I have crosstab report.I have taken "Routes" at columns ,"vehicles" at Rows and students count who are belongs to specific vehicle and route as Summarized fields..I need not to display intersection cells having data as "0"..I want to supress that cells having value zeros..
    Thanks in Advance!....
Title: Re: Hiding empty columns in crosstab report
Post by: ramya on 09 May 2016 05:19:42 AM
anyone plz give me reply