COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Report Studio => Topic started by: dbrooks74 on 21 May 2010 02:19:49 PM

Title: Master Detail/Relationship (Compare numbers)
Post by: dbrooks74 on 21 May 2010 02:19:49 PM
I have two sets of lists.  Unfortunately the way the two scripts are written my filter is comparing two values one is using the thousands comma and one is not.  So two values could be 1250 and the other would be listed as 1,250.  How do I filter the list?  Am getting an error when I try to do the standard "this field  = this field".  I think one is set for text and the other is a #.  :-(

??? ??? ??? ??? ??? ??? ??? ??? ??? ???
Title: Re: Master Detail/Relationship (Compare numbers)
Post by: MFGF on 26 May 2010 10:12:51 AM
Try using the cast() function on one of the values to change its data type to match the other.  You should then be able to compare them successfully.

Regards,

MF.