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

How to create Union between two dimensions?

I have two dimensions in a pivot table with similar kind of data.

A          B

S02     S02

S02     S03

S03     S03

S07     S07    

S07     S02

when selection is made on  listbox 'A' for 'S02'

I want

A          B

S02     S02

S02     S03

S07     S02

Result set.

Please Help.

Best Regards,

Gaurav Tyagi

3 Replies
phaneendra_kunc
Partner - Specialist III

See if the attached helps..

Phani

Not applicable
Author

hi

try it

a:

LOAD * INLINE [

    A, B

    S02, S02

    S02, S03

    S03, S03

    S07, S07

    S07, S02

];

Concatenate

LOAD B as A,

     A as B

Resident a;

when you select S02 on listboxA:--

then output like this

AB
S02S02
S02S03
S02S07
Not applicable
Author

Hi Ranjan,

I want Union in the resulting tables not in the list boxes.

Your code is doing the union in the list boxes but not giving me the desired result set as I have mentioned in my query above. Thanks for your help though, Still working on it.

Hi Phani not able to open your documents on my machine I'm using the free version of QlikView.

Thanks,

Gaurav Tyagi