If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Aggregating several text values into single comma separated value

Started by hespora, 28 Oct 2021 09:30:14 AM

Previous topic - Next topic

hespora

Hi there,


this is a list I have:

Dim1    Dim2
A       A1
A       A2
A       A3
B       B1
B       B2


and this is the list I would like as a result:

Dim1    Dim2 agg
A       A1, A2, A3
B       B1, B2


No facts involved in this, these are pure text values. The number of values for Dim2 for each Dim1 is variable.
Now, I know how to solve this by using a repeater inside a list, but that solution seems to take exponentially longer, the longer the original list is, and I'm looking for something that is purely inside a query/multiple queries if need be. Anyone got an idea?

CognosPaul