Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Concatenate and preview table content

Hello,

I have a question:

I have to tables: 1. Users, 2. City. Both tables share a field called CityCode and table 2 has the name of the city. When I concatenate these tables and I preview its content (CTRL + T and right click on the table and preview), the city name and code are not asigned to the corresponding row based on the city code. See figure 1.

Fig 1
User.Name User.LastNameUser.CityCodeCity.CityCodeCity.Name
JoeDoe1
MikeSmith2
1New York
2Buffalo
Fig 2
User.Name User.LastNameUser.CityCodeCity.CityCodeCity.Name
JoeDoe11New York
MikeSmith22Buffalo

Can the concatenation lead to a result like figure 2? Or how do I do this?

Thank you,

Juan.

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi Juan,

Rename the City.CityCode to User.CityCode and join the two tables instead of concatenating and you should get the result you're after.

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hi Juan,

Rename the City.CityCode to User.CityCode and join the two tables instead of concatenating and you should get the result you're after.

Not applicable
Author

Thank you, it worked!