COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: cognoshelp@ymail.com on 07 Sep 2008 06:38:24 PM

Title: What Function need to use to eliminate duplicate values in Report Studio
Post by: cognoshelp@ymail.com on 07 Sep 2008 06:38:24 PM
Hello All Garus,

I need function in report studio which eliminates duplicate values in report studio.

eg: I have a column

COLUMN XYZ
Values of this column are:
ABC
CDE
CDE
FGH
FGH
FGH
IJK
IJK

What I want is like
ABC
CDE
FGH
IJK

I hope it is clear if not please let me know

I need function which I can use to filter this duplicate values just like oracle function like "DISTINCT"               
Title: Re: What Function need to use to eliminate duplicate values in Report Studio
Post by: JGirl on 07 Sep 2008 10:21:12 PM
you could group them?
Title: Re: What Function need to use to eliminate duplicate values in Report Studio
Post by: vivek.bevan on 08 Sep 2008 02:18:46 AM
You can use distinct function to show the column.

~Vivek
Title: Re: What Function need to use to eliminate duplicate values in Report Studio
Post by: blom0344 on 08 Sep 2008 03:01:41 AM
If you fetch no facts from the database and your XYZ column is assigned as an attribute, then Cognos will automatically add a distinct clause to the SQL generated..
Title: Re: What Function need to use to eliminate duplicate values in Report Studio
Post by: cognoshelp@ymail.com on 08 Sep 2008 01:37:21 PM
Thanks for your response

But its already grouped and distinct function is not work in this case.
I have outjoin to it in FM.
Quote from: blom0344 on 08 Sep 2008 03:01:41 AM
If you fetch no facts from the database and your XYZ column is assigned as an attribute, then Cognos will automatically add a distinct clause to the SQL generated..
Title: Re: What Function need to use to eliminate duplicate values in Report Studio
Post by: the_xxx on 19 Sep 2008 04:29:08 PM
trim the data item and then do distinct....give a shot!