Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
ashokraju
Contributor II
Contributor II

fact tables

i have three fact tables and multiple dimension tables.how we create star schema.

7 Replies
migueldelval
Specialist
Specialist

Hi Ashok,

If it´s possible join fact tables in only one, and after link dimensión tables with only one field to avoid Syn links.

If you want send me a sample of your data and I could help you.

Regards

Miguel del Valle

PrashantSangle

Hi,

concat 3 fact table to one.

Use concatenate to concat

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
ashokraju
Contributor II
Contributor II
Author

thanku

jyothish8807
Master II
Master II

Hi Ashok,

There are two ways to do this:

1. Try to concatenate all the facts tables if possible.

2. Create link table

Go through this, hope it will be helpful:

MASTERTABLE (LINK TABLE or Concatenated FACT Table)

Regards

KC

Best Regards,
KC
gautik92
Specialist III
Specialist III

creating a link table for all the three fact tables and make that link table as a fact table

effinty2112
Master
Master

Hi Ashok,

               It would help if post an image from your table view with your dimensional tables and your three separate fact tables. There will be more than one way of doing this. My approach is usually to concatenate your fact tables but this may involve moving some of your fields around.

Suppose you have two fact tables with a one to many relationship such as order header and order items with a number of dimensions associated with your header table, such as Customer and others, the two fact tables associate on a field like OrderID.

"Move" the Customer field into the Items table by something like

MappingCustomerRef:

Mapping

LOAD

OrderID,

CustID

Resident OrderHeaders;

Left Join(Items)

LOAD DISTINCT

OrderID,

ApplyMap('MappingCustomerRef',OrderID,'Missing') as CustID

Resident Items;


DROP Field CustID from OrderHeaders;


Now the Customer dimensional table will associate with the records in the Items table.

Do this for all dimensions associated with the header table until the Header table has only one association, that is with the Items table on the field OrderID. At this point you can concatenate the two tables.


A final point: star schemas are all very well and easy to understand but I wouldn't get obsessed with always obtaining that model. Sometimes there is a high price to pay in memory usage when creating large fact tables and performance may in fact suffer.


Cheers


Andrew

ashokraju
Contributor II
Contributor II
Author

thanku