Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
Qlik Community Office Hours: Join us on July 9th, 2025 - REGISTER HERE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Star schema

Hi all,

I have a few tables and want to model them as a star schema for better perfomance.

InvoiceNoCustomerNo
1234345
354654

DueDateInvoiceAmountCustomerNo
10/12/20123456345
12/12/20128979654

CustomerNoNameAddress
345William Bonneynull
654John Dillinger33 Liberty Street

How can I join just the fields InvoiceNo, InvoiceAmount and CustomerNo into one fact table? When first load all two or three fields from the tables and then join just the fields I want my machine with 8GB RAM freezes. If I ommit the joins I'm able to load the full dataset. Any help is appreciated!

1 Solution

Accepted Solutions
jvitantonio
Luminary Alumni
Luminary Alumni

Try this:

T1:

LOAD InvoiceNo, CustomerNo FROM table1;

T2:

join (T1)

LOAD CustomerNo FROM table2;

T3:

JOIN (T3)

LOAD CustomerNo, Name, Address from table3;

drop fields Address, Name;

View solution in original post

3 Replies
jvitantonio
Luminary Alumni
Luminary Alumni

Try this:

T1:

LOAD InvoiceNo, CustomerNo FROM table1;

T2:

join (T1)

LOAD CustomerNo FROM table2;

T3:

JOIN (T3)

LOAD CustomerNo, Name, Address from table3;

drop fields Address, Name;

swuehl
MVP
MVP

I assume you can have multiple InvoiceNo per CustomerNo, right?

How do you want to link a InvoiceNo to a certain InvoiceAmount then, if the only key is the CustomerNo?

Not applicable
Author

Thank you for replying!

This is what I'm doing, except the drop fields part.

What is the purpose of droping name and address? Can't I drop the whole T3 table?