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

Announcements
Discover the Trends Shaping AI in 2026: Register Here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Grouping

  Id   Val

  1. A

  1    B

   2   A

   3   B

If I group By “ID”

Id     Val

  1. AB
  2. A
  3. B

Is there a way I can group my  ID 2 and ID 3 also to VAL “AB” since they have at least  one value matching.

Suggestions ??

1 Reply
Not applicable
Author

Use this:

tmp:

LOAD *, Val as tmpVal INLINE [

    Id, Val

    1, B

    1, A

    2, A

    3, B

];

load Id,

    concat(tmpVal) as Val

resident tmp

group by Id

order by Id, Val;

drop table tmp;