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: 
thanhphongle
Creator II
Creator II

INNER JOIN

Hello Community,

I have a problem with the output of my data. I have 3 tables and conntected them with an INNER JOIN.

But somehow when I

sum(price)

count(serial_no)

QV returns me 117.000 and 150

I was actually expecting 39.000 and 50

I understand that the QV multiplies the value with 3 cos I have an INNER JOIN between the tables contract/history and contract/assets.

But is it somehow possible to have a JOIN FUNCTION where

sum(price) = 39.000

count(serial_no) = 50

without multiplying it with 3?

I attached my qv file and my tables

Hope someone can help me out here.

1 Solution

Accepted Solutions
Or
MVP
MVP

What you are describing seems like the correct behavior in this case. As stated in Michele's post above, you triplicate the record when you inner join the N:1 table to the source table. If you don't want this behavior, don't join the tables - QlikView doesn't need the join.

View solution in original post

3 Replies
micheledenardi
Specialist II
Specialist II

This is because when you join "history" tab with the other tables the record triplicates.

If you want to have only one final table you have three options:

1) change your keys between "history" and "assets".

2) take only one record for each "contract_no".

3) do your inner joins but on your charts use sum(price)/3 and count(serial_no)/3 as expressions.

hope it helps

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
Or
MVP
MVP

What you are describing seems like the correct behavior in this case. As stated in Michele's post above, you triplicate the record when you inner join the N:1 table to the source table. If you don't want this behavior, don't join the tables - QlikView doesn't need the join.

thanhphongle
Creator II
Creator II
Author

I just removed the JOINS. Now it perfectly works. Thanks very much !!