Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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;