COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: a-oh-river on 25 Jan 2018 06:41:25 PM

Title: Combine two rows into one
Post by: a-oh-river on 25 Jan 2018 06:41:25 PM
Hello Cognos Experts,

I am trying to combine two rows into one. See the image below:

(https://i.imgur.com/bVjBEGL.jpg)

I am creating a project list output that should look similar to printing a project list from MS Project where the task assignees appear in ONE row, not two.

Does anyone know if this is possible?

Thank you!

C

edit to add image
Title: Re: Combine two rows into one
Post by: BigChris on 26 Jan 2018 02:23:41 AM
To have any chance of answering the question I'd really need to know what's causing the data to appears on two lines in the first place. There doesn't appear to be anything in the data that you've shared so far that would suggest a reason...
Title: Re: Combine two rows into one
Post by: hespora on 26 Jan 2018 06:16:47 AM
My assumption would be that the second-to-rightmost column that has been blanked out by OP contains employee names (hence the blanking out :)) and that those differ.

So, in order to possibly devise a solution (an ugly one, I fear), we'd need to know:

- are there always multiple assignees to a task? I think the first row already answers that, but just making sure;
- if there are multiple assignees to a task, is there an upper limit? Is it a max of two, as one could imply from your description, or are more possible?
Title: Re: Combine two rows into one
Post by: Lynn on 26 Jan 2018 07:06:21 AM
As BigChris and hespora have already stated, a little more information about what the expectation/requirement is for this obscured data is likely key to getting the best answer. It would also help to understand if any of the other columns could vary and cause duplication.

A few techniques:
Title: Re: Combine two rows into one
Post by: Cheeks100 on 30 Jan 2018 10:54:51 PM
Select No Wrap in the properties for the column causing problem?
Title: Re: Combine two rows into one
Post by: dougp on 31 Jan 2018 02:27:50 PM
Use a repeater table.  You'll want columns named Assignee and Comma.  Comma is the result of a calculation.  It returns a comma (,) if this is not the last row within the group.  It contains an empty string () if it is the last row within the group.  See the attached report spec.