COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Divya on 23 Feb 2010 08:04:48 PM

Title: Blank cells in the report without values in the report output
Post by: Divya on 23 Feb 2010 08:04:48 PM
Hello All,

I have two queries with me.

1. In a crosstab Report there is average in the crosstab corner and display date in the rows area and Outcome in the column area. for the outcome I have given a case statement and segragated as GOOD Bad and worst. In the report output I want to get the figures for GOOD and BAD but not for WORST. The worst cells should be blank in the report output.

Please suggest me how to get it done in the cognos report studio as it is very urgent


2. There is one data item called Timeuntilbreach in my list report.
I have to get that data in the report output as follows
if it is less than one day it should be displayed as HH:MM
if it is greater than one day it should be displayed as  DD:HH


Please give me ideas so that I can work on them


Thanks a llot

divya
Title: Re: Blank cells in the report without values in the report output
Post by: MFGF on 24 Feb 2010 05:28:36 AM
Hi,

1. Try defining a calculation with the expression if ([Outcome] in ('Good','Bad')) then ([Average]) else (null)
You can then use this as your crosstab measure.

2. It's difficult to give you an approach for this unless you tell us how Timeuntilbreach is stored.  Is it an integer value, or a string, or a date, or an interval, or...?  What format is it currently in?

MF.
Title: Re: Blank cells in the report without values in the report output
Post by: ydeliwala on 24 Feb 2010 10:04:57 AM
for 1. You can create a boolean variable to classify whether the value falls in good & Bad or Worst. Apply conditional formatting by using this variable as text source variable and show output values as blank for rows with 'worst'.

for 2. You can extract the day from the Timeuntilbreach column and use it for an if condition to display the value you want.

Yo!