COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: reginoilano on 14 Mar 2010 12:05:18 AM

Title: topcount and bottomcount function in a relational model
Post by: reginoilano on 14 Mar 2010 12:05:18 AM
Hi,

I used a topcount and bottomcount function to get a dynamic ranking in a list report, but when I tried to create a condition where the ranking will be based on the user input whether it is a top or bottom an error occured stating that it is not supported.

in one data item I created the logic expression:

Case
  when (?rank format?='Top') Then
    (topcount([subject],?rank limit?,[amount])
  when (?rank format?='Bottom') Then
    (bottomcount([subject],?rank limit?,[amount])
End

anyone had experience this situation?

Thanks!
Title: Re: topcount and bottomcount function in a relational model
Post by: laks on 15 Mar 2010 02:15:59 AM
What kind of error your getting. Check your syntax, you didn't closed the parentheses which opened before topcount and bottom count.
Title: Re: topcount and bottomcount function in a relational model
Post by: eliza_jane on 15 Mar 2010 04:00:12 AM
TopCount and BottomCount functions are to be used with DMR or Dimensional models only and not relational models.