COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Framework Manager => Topic started by: Dipika Dabhakdar on 03 Sep 2015 06:40:14 PM

Title: running count or count does not work
Post by: Dipika Dabhakdar on 03 Sep 2015 06:40:14 PM
Hello Cognos Expert,

I want to display a value 0 for an query item when there is absolutely no record for that field.

So far I tried running count and count function to check to see if there is any record, but none of them works.

can anyone help in solving this issue?
Title: Re: running count or count does not work
Post by: bus_pass_man on 03 Sep 2015 07:28:35 PM
Try an expression like this:

if {object} is null
then 0
else {object}