Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi to everyone,
I've a problem I can't solve. This is my table:
Field_1 | Field_2 |
---|---|
A | X |
A | - |
A | X |
A | - |
B | - |
B | X |
B | - |
B | - |
B | Y |
this is what I need to obtain:
Field_1 | Field_2 |
---|---|
A | X |
B | X, Y |
Using the Aggr() function:
Aggr(Field_2,Field_1)
I'm only able to obtain this:
Field_1 | Field_2 |
---|---|
A | X |
B | - |
How can I extract also the 'Y'?
Thanks a lot!
Try this
Concat(DISTINCT Field_2, ', ')
The complete syntax was:
Aggr(Concat(DISTINCT Field_2, ','), Field_1)
Great thanks!
Were you using this as a dimension?