COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: mustafa on 20 Nov 2009 04:47:46 AM

Title: text source
Post by: mustafa on 20 Nov 2009 04:47:46 AM
Hello,

I am creating a cross-tab where the rows will show the children of a particular hierarchy.  However on the report output i want to take change the name of the children by using a sub-string expression.  Does anyone know how to do this or if you can?


thanks

mus
Title: Re: text source
Post by: blom0344 on 25 Nov 2009 05:00:05 AM
Quote

Use the caption() function against the member before using the substring() function.
Steps:

Set the expression definition to:

substring(caption([great_outdoors_company].[Products].[Product line]),1,20).