Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem with aggr()

Hi to everyone,

I've a problem I can't solve. This is my table:

Field_1Field_2
AX
A-
AX
A-
B-
BX
B-
B-
BY

this is what I need to obtain:

Field_1Field_2
AX
BX, Y

Using the Aggr() function:

Aggr(Field_2,Field_1)

I'm only able to obtain this:

Field_1Field_2
AX
B-

How can I extract also the 'Y'?

Thanks a lot!

1 Solution

Accepted Solutions
sunny_talwar

Try this

Concat(DISTINCT Field_2, ', ')

View solution in original post

4 Replies
sunny_talwar

Try this

Concat(DISTINCT Field_2, ', ')

Not applicable
Author

The complete syntax was:

Aggr(Concat(DISTINCT Field_2, ','), Field_1)

Not applicable
Author

Great thanks!

sunny_talwar

Were you using this as a dimension?