COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: semsel on 06 Nov 2012 11:01:43 PM

Title: How do I display zero values as blank cells?
Post by: semsel on 06 Nov 2012 11:01:43 PM
I have three fields Quantity, Amount and Avg Price. Avg Price = Amount /Quantity.
Whenever the Quantity is 0 I want to force to display all three as blank cells to avoid the /0 for Avg Price. How do I achieve this?
Title: Re: How do I display zero values as blank cells?
Post by: tjohnson3050 on 07 Nov 2012 12:28:49 AM
In the properties for data format there are options for what characters to display for the divide by zero (/0) values.
Title: Re: How do I display zero values as blank cells?
Post by: Lynn on 07 Nov 2012 12:10:15 PM
You could also try a conditional style. I would use and advanced conditional style with a condition [Quantity] = 0 and then specify "no" in the visible property on the advanced tab of the style for that condition. You could apply this property to all three elements.