COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: kristysmith on 29 Dec 2006 02:58:04 PM

Title: [Report Studio] Help with "For" syntax
Post by: kristysmith on 29 Dec 2006 02:58:04 PM
I am trying to do a statement for the top 10 slot machines by number FOR location (property), but I cant seem to figure out where to put the ( ). The tip would help if my statement was like their example, but its not.

topcount([RD Detail].[RD Detail].[Slot Machine or Table Seat],10,[Chips/Coins In Amount]for [Location])

the tip says....
aggregate_function(expression FOR expression {,expression})

Any ideas?
Title: Re: [Report Studio] Help with "For" syntax
Post by: sir_jeroen on 02 Jan 2007 12:40:05 PM
syntax is:
sum( [Quantity] for [Product Line], [Product Type])
Title: Re: [Report Studio] Help with "For" syntax
Post by: kristysmith on 23 Jan 2007 04:11:09 PM
I think you misunderstood my question. I am trying to use the topcount function, to get the top 10, not sum. Thanks though. I was able to make it work.
Title: Re: [Report Studio] Help with "For" syntax
Post by: sir_jeroen on 24 Jan 2007 12:04:52 PM
The sum was just an example... It should work for your function too. You asked help for the "FOR" syntax...