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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
anuradhaa
Partner - Creator II
Partner - Creator II

Merge Two tables

HI,

I have below tables

  

COUNTRYCOUNT
A43
B551
D673
Total1267
COUNTRYCOUNT
D708
Total708
COUNTRYCOUNT
A330
B7
Total337

I have created them from qlikview. here i use country as dimension. But three charts values are different. say cart one country is arrival country, chart 2 it's current country etc.

So that's why i use separate charts.  Is there a way to merge those dimension hence countrie are A,B,D

Else can i combine these three tables in qlikview UI.

13 Replies
Anonymous
Not applicable

you can concatenate these tables with a Flag in each table:

and then you can use that flag as a identifier at UI in expressions

anuradhaa
Partner - Creator II
Partner - Creator II
Author

can you pls share an example.

tresesco
MVP
MVP

If you concatenate them at the script, it works the way you want. try to share a sample qvw with your sample tables and let us help you show how.

Anonymous
Not applicable

Post some sample data

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

Data:

LOAD

COUNTRY,

COUNT,

'Arrival' AS Datatype

FROM DataSource1;

Concatenate(Data)

LOAD

COUNTRY,

COUNT,

'Current' AS Datatype

FROM DataSource2;

Concatenate(Data)

LOAD

COUNTRY,

COUNT,

'SomeOthertype' AS Datatype

FROM DataSource3;

Now use

Dimension: COUNTRY

Expression: Sum(COUNT)

Hope this helps you.

Regards,

Jagan.

Anonymous
Not applicable

sth like this?


PFA..

Anonymous
Not applicable

For your arrival Country, you can use expression like this:

Dimension would be common, Country as Dim

=sum({<Flag={'Arrival'}>} count)

similarly for others

anuradhaa
Partner - Creator II
Partner - Creator II
Author

Hi ,

Please find attached excel sheet.

There in the above table it has ARRV Country and DEPT country.

In the NEXT table it has Current Country.

Hint : Current country is available only for ID that don't have DEPT Country

Anonymous
Not applicable

Already shared with you..

Check it..