Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

auto concatenate & force concatenate pls explain?

hi

   what is auto concatenate & force concatenate pls explain?

7 Replies
Not applicable
Author

HI,

If you have tables with same columns then it will concatenate automatically. In such situation we have to use no concatenate explicitly.

Force concatenate is to join two tables into a single one.

Please see the help in qlik view you can find some more info

vikasmahajan

http://community.qlik.com/thread/87721

Please refer.

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Not applicable
Author

i have idea  about force concatenate

can u pls explain what is auto concatenate is there any difference b/w auto & normal concatenate 

Not applicable
Author

Hi,

Both auto concatenate and force concatenate  are same but the thing is in auto concatenate   is done by qlikview when it's find the same fields in both table even though  you don't want to concatenate so that time you have  to use the no concatenate keyword explicitly

Not applicable
Author

Hi,

Auto Concatenation happens when there are common/similar fields in two tables, it is done by default (by qlikview) irrespective of wherther you want it or not. If concatenation is not needed then you have to use the "No Concatenate" word explicitly between the tables.

Forced Concatenation is when the fields in tables are same but you still need them to be concatenated, for this you need to use concatenate word explicitly. It appends the rows of one table to another.

Basically Auto & Forced concatenation have the same function, difference being : Auto concatenation is done by qlikview by default and forced concatenation can be done explicitly.

Hope this helps!

Not applicable
Author

Thanks for rly

      can share any work file with example regarding auto & force concatenate if possible

Not applicable
Author

Hi ,

PFA a sample file.

Also below are few cents i found in reference manual :

Automatic Concatenation

If the field names and the number of fields of two or more loaded tables are exactly the same, QlikView will

automatically concatenate the content of the different statements into one table.

Example:

load a, b, c from table1.csv;

load a, c, b from table2,csv;

The resulting internal table has the fields a, b and c. The number of records is the sum of the numbers of records

in table 1 and table 2.

Rules:

The number and names of the fields must be exactly the same.

The order of the two statements is arbitrary.

Forced Concatenation

If two or more tables do not have exactly the same set of fields, it is still possible to force QlikView to concatenate

the two tables. This is done with the concatenate prefix in the script, which concatenates a table

with another named table or with the last previously created table.

Example:

load a, b, c from table1.csv;

concatenate load a, c from table2,csv;

The resulting internal table has the fields a, b and c. The number of records in the resulting table is the sum

of the numbers of records in table 1 and table 2. The value of field b in the records coming from table 2 is

NULL.

Rules:

The names of the fields must be exactly the same.

Unless a table name of a previously loaded table is specified in the concatenate statement the concatenate

prefix uses the last previously created table. The order of the two statements is thus not arbitrary.