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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem with Join

Hi All,

i have a problem

i have two tables

the first one called visits which contain this data

EmpKeyState
1Matrouh
2Giza
3Alex
4South Sinai
5Faiyom
6cairo
2Cairo
4Cairo
6Cairo
2Alex
3Alex
1Cairo
2Cairo
3Cairo

and the second one called Map and contain this data

Customer XCustomer YState
133.488781.963Matrouh
295.701606.364Giza
349.772802.657Alex
611.679661.239South Sinai
402.154683.189Faiyom
473.122713.371cairo

and i want to count for each state the no of visits

So i make

load EmpKey,

       State,

          1   as visitCount;

and for the state i sum the visitCount and it's okay

The problem when i tried to show the visitcount for each state on the map so i made ajoin between the first and escond table on (State) but when summing visitcount it appears always 1

So,What's the problem?

Attached the QVW document if anyone can help me?

1 Reply
Anonymous
Not applicable
Author

Skip the EmpKey and just load the State and the visitcount for the State values:

Join (Map)

LOAD

     State,

     Count(State) as VisitCount

FROM

Map2.xls

(biff, embedded labels, table is Sheet1$)

group by State;