COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: jcsanson on 11 Jul 2014 02:59:52 PM

Title: How to split a string Data Item?
Post by: jcsanson on 11 Jul 2014 02:59:52 PM
Hello,

I wonder if it's possible to split a string Data Item by a '|' delimiter, and after that group in the same column?

Ex.:
Current:

COLUMN(TAG)
TAG001|TAG002|TAG003

Desire:

COLUMN(TAG)
TAG001
TAG002
TAG003

We work with Cognos Version 8.4.1

Thanks,
Title: Re: How to split a string Data Item?
Post by: Bark on 17 Jul 2014 05:58:30 AM
I believe it is not possible to do this within Cognos. I am afraid you would need to do it in the database.
Title: Re: How to split a string Data Item?
Post by: MFGF on 17 Jul 2014 06:42:22 AM
Hi,

Are you asking simply for the data within the row to be formatted with the tags below each other (but still physically within the same row) or are you asking for this one row of data (with three tags) to be converted into three separate rows of data? If it's the former, you may be able to play with formatting to achieve this in the report, but the latter isn't really a reporting challenge - it's pivoting the data itself. Tools such as Cognos 8/10 Data Manager would allow you to do this quite easily, but you may not have this?

Cheers!

MF.