COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: deepak2k2 on 09 Nov 2010 11:02:04 PM

Title: Addition
Post by: deepak2k2 on 09 Nov 2010 11:02:04 PM
Hi,

I want a add 3 data items in my crosstab.  But one of the Dataitem value contains 'NA' character.  If I add those 3 dataitems, i'm getting the result as 'NA'.

I've used the Exp as  DataItem1+DataItem2+DataItem3

How do I get the total value? (10+NA+8=18).  But I'm geting the result as NA.
Title: Re: Addition
Post by: blom0344 on 10 Nov 2010 03:27:39 AM
The solution would depend on the origin of the 'NA'. Why are 'NA' (Not Available) values returned? If you can fix this in the query that fetches the data and make sure a zero is returned instead, then the addition would be okay without additional work..
Title: Re: Addition
Post by: cognos10 on 10 Nov 2010 03:28:20 PM
You can format that data item N/A as '0' and then u can add all the data items