Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Regarding Data model

Hi  All

I have following Data model

Capture.PNGable

Here i have two fact tabels One is orders and other one is orderDetails

so can u pls advise me to make them single table ..what i have to do??

i did concatination of both tables but pbm is

when i m trying see quantityOrderd per customer number data is not cmg(with out concat data is cmg crctly)

can anyone pls help me

4 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi Narendra,

You should not concat this two tables, you can maintain it separately or you can join the tables based on the OrderNumber.

Orders:

LOAD

*

FROM OrdersDataSource;

Left Join(Orders)

LOAD

*

FROM OrderDetailsDataSource;

Regards,

Jagan.

Not applicable
Author

Hi Jagan

Orders table is Having 1400 rows

& OrderDetails is having 2996 rows

so if i do left join data will get duplicate ryt?? that time if i do any sum(quantityOrderd) will it give crct ans??

i attached My QVW file also

jagan
Partner - Champion III
Partner - Champion III

Hi,

You have QuantityOrdered field in OrderDetails table, so there should not be any issue.  Also make that OrderNumber is unique in Orders table, if not then don't join this tables otherwise you will get duplicate rows.

My suggestion is not to join.  In your attachment check there are lot of OrderNumber s missing for many rows almost 25% of rows do not have OrderNumber.

Regards,

jagan.

Not applicable
Author