Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

use of join

hello,

i get one requirement to find returned sales.

i have two table order and return, return

order:

    

Order IDOrder DateShip DateRegionSales
CA-2012-1248917/31/20127/31/2012East2309.65
IN-2013-778782/5/20132/7/2013Oceania3709.395
IN-2013-7124910/17/201310/18/2013Oceania5175.171

return :

 

ReturnedOrder IDMarket
YesMX-2013-168137LATAM
YesUS-2011-165316LATAM
YesES-2013-1525878EU

i want find which region has returned product and their order date by using join.

thank you.

14 Replies
stabben23
Partner - Master
Partner - Master

Then you will have a Perfect match between Your keys.

In chart, use Count({<Returned={'Yes'}>}Order ID) With Region and Order Date as Dimension.

Or
MVP
MVP

If your requirement is to use join, use join - there's not really a question here in that case.

Load Table1;

JOIN

Load Table2;

MK9885
Master II
Master II

Prachi, Once you load your data and if the field names are same it would automatically make a link between 2 tables.

Plus if the values are same then it would be a key and your model would work good.

order:

  

Order IDOrder DateShip DateRegionSales
CA-2012-1248917/31/20127/31/2012East2309.65
IN-2013-778782/5/20132/7/2013Oceania3709.395
IN-2013-7124910/17/201310/18/2013Oceania5175.171

return :

ReturnedOrder IDMarket
YesCA-2012-124891LATAM
YesUS-2011-165316LATAM
YesES-2013-1525878EU

In above case Order ID from Order table and Order ID from return would make a link based on Order ID.

And CA-2012-124891 would come as Returned- Yes cus they both have same Order ID value.

stabben23
Partner - Master
Partner - Master

If you HAVE to use join, then use left Join (order) infront of Return table.

But, Qlikview Association, Applymap and concatenate will also do the job for you.

MK9885
Master II
Master II

Use Outer Join.

thats the default join in Qlik.

It would keep all the values in both the tables

Different Join Functions in Qlikview

Check the above link and do as per your need.