COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: HERRERA on 11 Dec 2007 06:43:15 AM

Title: Sintax ??? Type ??? I dont know...
Post by: HERRERA on 11 Dec 2007 06:43:15 AM
Hi, i have a problem with a expression below....

Case
When [Union1].[Market Average]>=[Union1].[TOP 25%]
Then 1
Else  0
End

When i run the report just 0 appears.....
Title: Re: Sintax ??? Type ??? I dont know...
Post by: MFGF on 11 Dec 2007 11:42:15 AM
Hi,

If you report both of these items, what gets displayed on your page?

MF.
Title: Re: Sintax ??? Type ??? I dont know...
Post by: HERRERA on 13 Dec 2007 11:36:07 AM
Hi..

I need to count how many [Market Average] has value greater than [TOP 25%].

Tks
Title: Re: Sintax ??? Type ??? I dont know...
Post by: kristysmith on 13 Dec 2007 01:11:29 PM
may be check your aggregate function???
Title: Re: Sintax ??? Type ??? I dont know...
Post by: MFGF on 13 Dec 2007 02:12:59 PM
Hi,

Yes, but you didn't answer my question.  If you add both of these items to the report output then run, what values are you seeing displayed?

(ie are there any examples of [Market Average] being greater than or equal to [TOP 25%] in your query?)

MF.