Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

need interview question

what is fact ,dim and fact table ,dim table?

1 Solution

Accepted Solutions
fred_s
Partner - Creator III
Partner - Creator III

Hi Suman,

A fact table mostly contains numbers or whatever, the stuff you'd like to calculate, your expressions.

For example your invoices with amount etc

Your invoices table will probably contain a customernumber, but not your customerdata like the customername and address.

Your table with customers contains ways to view your expressions. A view is a dimension.

Your customertable (dimension) contains one customer 'x'.

Your Invoicestable (fact) contains zero, one or more invoices for customer 'x'.

When you create a chart with sum(Amount) per Customer,

sum(Amount) is your expression and Customer is your dimension.

Best datastructure is a starscheme: a facttable (centered) with one or more dimensiontables.

View solution in original post

1 Reply
fred_s
Partner - Creator III
Partner - Creator III

Hi Suman,

A fact table mostly contains numbers or whatever, the stuff you'd like to calculate, your expressions.

For example your invoices with amount etc

Your invoices table will probably contain a customernumber, but not your customerdata like the customername and address.

Your table with customers contains ways to view your expressions. A view is a dimension.

Your customertable (dimension) contains one customer 'x'.

Your Invoicestable (fact) contains zero, one or more invoices for customer 'x'.

When you create a chart with sum(Amount) per Customer,

sum(Amount) is your expression and Customer is your dimension.

Best datastructure is a starscheme: a facttable (centered) with one or more dimensiontables.