COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: xv14ar on 03 Sep 2014 04:35:02 AM

Title: Help: Column Header Alignment
Post by: xv14ar on 03 Sep 2014 04:35:02 AM
(http://s14.postimg.org/3poy4u8mp/xtabsample.jpg)
Title: Re: Help: Column Header Alignment
Post by: BigChris on 03 Sep 2014 04:55:59 AM
Can't you filter the data so that the null records aren't brought through?
Title: Re: Help: Column Header Alignment
Post by: xv14ar on 03 Sep 2014 05:04:31 AM
Can't. The measures for the group in 'QR' will be affected.

QR and ST are separate queries which I just merged (join). This is 0..n - there are items in QR that are not in ST, thus the null on ST.
Title: Re: Help: Column Header Alignment
Post by: bdbits on 03 Sep 2014 09:00:28 AM
You can have items in the query that are not displayed on the report. Cut - instead of delete - the column you don't want and the data item will stay in the query.

Will this accomplish what you want?
Title: Re: Help: Column Header Alignment
Post by: xv14ar on 03 Sep 2014 09:56:28 AM
no man. the column that i don't want to show is the null - this is not a data item in the query but rather a value of the data item 'ST'.
Title: Re: Help: Column Header Alignment
Post by: bi4u2 on 03 Sep 2014 11:18:15 AM
The only way I have been able to achieve this would be for you to not nest the second level under the first, that way you can add the conditional display on both groupings. So in your case you would be adding 'ST' 4 different times and having one item under each 'ST'
Title: Re: Help: Column Header Alignment
Post by: xv14ar on 03 Sep 2014 07:50:40 PM
Did it! created data item calculation with the following expression:

Filter( [UV], [UV] in ( 'KL', 'MN', 'OP' ))

Sorry i have not cleared that 'ST' is not a data item but rather a crosstab space with 'ST' as its text just to label the header.
And let's just call 'UV' as the data item name which contains the values KL MN and OP

The expression above btw filters the values to be shown on that specific data item - not the whole query. Thus, not affecting the query results.