Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Concatenating multiple facts tables into single

     Hi ,

I would like to concatenate multiple fact tables into single fact table ? which is the best approch Concatenate or can i use left join instead ?

Which is the most preferred with respect to performance ?

Thanks

9 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

They do different things, so it depends on your data and what sort of analysis. To put it simply:

     Concatenate adds new rows - in a fact table these are new facts.

     Join adds columns to existing rows - this might be enrichment of existing facts

Of course, concatenation can add new columns, but the those columns will be null-valued in the original rows.

And a join can add new rows if the join keys are not unique (or remove rows if an inner join is used), although the existing fields for the new rows will be null valued if they are not part of the join.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
deepakqlikview_123
Specialist
Specialist

Hi,

If granularity is same u can concatenate the tables.

Thanks

MayilVahanan

Hi

If you have multiple fact table. then go with Concatenate or Link Table.

Concatenate vs Link Table

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Anonymous
Not applicable
Author

I have different levels of granularity .Then which is best way

Not applicable
Author

Best Practice is to keep one Fact table which gives faster response.

Concatenate depends on your table structure and granularity. Here Concatenation is very similar to UNION in Sql.

deepakqlikview_123
Specialist
Specialist

Hi ,

You can go with link table.

Create central key table and use the mixture of join and concatenate.

Thanks

Not applicable
Author

If granularity is same then go with Concatenation and if granularity is different then go with Link Table

Asijbty11
Contributor
Contributor

Can you explain how join multiple fact table into one, using Concatenate?

QFabian
Specialist III
Specialist III

try this very old but useful pdf from qlik

QFabian