Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have 2 tables.I want to merge it into one via join.
Case1:-
table a:
ref,
amount,
----
from table a;
table b:
ref,
Tax,
----
from table b;
Qlikview by default creating the join via ref and showing right data.
--------------------------------------------------------------------------------------------------------
Now i want to merge both table into 1 via join ref.
Case2:-
table a:
ref,
amount,
----
from table a;
join
table b:
ref,
Tax,
----
from table b;
But it is showing wrong data.What should i do to show right result during merging into 1 table.
table b having multiple entries of ref.But table 1 having single entry of ref.
Please suggest me to sort out this.
Thanks,
I tried the described approach with my sample data and it gives me same result both using association and join.
Can you share your sample file if possible, which helps me to investigate further?
Attached the file where I tried the scenario.
see this for better understanding:
Hi Leni,
I cant show.
Thanks,
Can you tell me which one is the exact join for the qlikview default (automatic) join?
As i already used these joins but no success.
Thanks,
don't join
tablea:
load * inline [
ref, amount
1, 1
2, 2
3, 3
];
join
// tableb
load * inline [
ref, tax
1,1
1,11
2,2
2,22
3,33
];
I think you're replicating the amount when you have the same ref in tableb and the sum is wrong
By default QV takes Full Outer Join which may mismatch your data.
Also, while joining two table check their Information Denisty and & Subset Ratio
information density and subset ratio? What is the use of this?
Table with more Information Denisty and & Subset Ratio will be like a parent table for you
Hi Maxgro,
I need to join them and make them one table.
and my expression is like eg:-
= sum(amount)+sum(tax)
Hi Balraj,
You are right my data is taking full outer join records when i joined them. but i need records just like in qlikview default (automatic) join.Because my target is to merge into one table via joining .
Thanks,
Instead of join, you can use Mapping Load as well....with applymap()..
see this: