Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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
MVP
MVP

Try this

Concat(DISTINCT Field_2, ', ')

View solution in original post

4 Replies
sunny_talwar
MVP
MVP

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
MVP
MVP

Were you using this as a dimension?