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

Inherited distinct in join

Hi to all!

Can some one tell me why distinct is inherited from previos load in join?

See the attachment. I am loading first table distinct and then loading second table NOT distinct and joining them. The result table turns out distinct too. Why?

1 Solution

Accepted Solutions
Not applicable
Author

This has been acknowledged for a while now, and considered working as designed

http://community.qlik.com/thread/5762

View solution in original post

6 Replies
Not applicable
Author

I see count=2 on test1 and count=3 on test2

Not applicable
Author

Yes. In test 1 dublicate rows are dropped and i dont understand why.

Test 1 is with distinct load in first table and the second is without.

But the data is the same in both cases.

tresesco
MVP
MVP

This is because your join resultant table is Groups1 which is qualified by DISTINCT before load. Therefore the table is loaded as distinct.

See the attached file, if you take a resident of the Groups1 table and then JOIN, you would get different result, because your resultant table is not qualified by DISTINCT there.

Not applicable
Author

This has been acknowledged for a while now, and considered working as designed

http://community.qlik.com/thread/5762

Not applicable
Author

I know how to work around this, the question is why it works like this. It breaks the logic.

Not applicable
Author

It costed me a half day to determine this. This should be in QlikView help file. This behavior of distinct keyword is not intuitive.