Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Noctis
Contributor II
Contributor II

What to do with tables which has facts and Dimensions in it?

Hello everybody hope someone can help me:

 

Right now im creating a datamodel but in this datamodel it seems like that most of the tables have a mix of Dimension fields and fact fields. lets say a table has  20 string fields and 7 fact fields. 

Is it recommended to split this table into only Dimensions and only facts tables?

 

 

Labels (1)
1 Solution

Accepted Solutions
marcus_sommer

Merging those 4 tables into a single one, yes - but not per join else per concatenate (union in sql) because joins have always a risk to change the number of records. Of course this could be handled but the efforts could become quite high depending on the relationships and the data-quality.

- Marcus

View solution in original post

3 Replies
marcus_sommer

It's recommended to design the data-model in the direction of a star-scheme with a single fact-table and n dimension-tables. The essential measure-fields should be placed within the fact-table. To have dimension-fields also within the fact-table is usually not a problem and must be not mandatory be switched into any dimension-table. 

- Marcus

Noctis
Contributor II
Contributor II
Author

Thanks Marcus for the reply.

 

lets say that I have 4 of theses with the same granularity and have the same key fields. is it then the best practice to join the facts into one fact table and keep the Dimension fields in the tables?  this should be then the Star schema which you are talking about right?

marcus_sommer

Merging those 4 tables into a single one, yes - but not per join else per concatenate (union in sql) because joins have always a risk to change the number of records. Of course this could be handled but the efforts could become quite high depending on the relationships and the data-quality.

- Marcus