How to avoid Synthetic keys (Fact tables)? Creating Link/Key tables - QlikView Tutorial Session 20

Veröffentlicht am: 28 Dezember 2018
auf dem Kanal: Trending Courses
2,670
27

In this session you will learn about Concatenating Fact tables to avoid Synthetic keys and Creating Link/Key tables

Concatenating Fact Tables To Avoid synthetic Keys
-----------------------------------------------------------------------
Store:
LOAD * INLINE [
StoreID, StoreName
1, Store A
2, Store B
];

Calender:
LOAD MonthID as DateID, Month INLINE [
MonthID, Month
1, Jan
2, Feb
];

Product:
LOAD * INLINE [
ProductID, Product
1, Product A
2, Product B
];
Sales:
LOAD * INLINE [
DateID, StoreID, ProductID, SaleQty, SaleValue
1, 1, 1, 2, 23
1, 1, 2, 4, 24
2, 1, 1, 4, 33
2, 1, 2, 3, 28
1, 2, 1, 2, 21
1, 2, 2, 4, 30
2, 2, 1, 3, 25
];

Waste:
LOAD * INLINE [
DateID, StoreID, ProductID, WasteQty, WasteValue
1, 1, 1, 1, 10
2, 1, 2, 1, 9
1, 2, 2, 2, 17
2, 2, 2, 1, 8
];

Creating Link Table/Key Table
-----------------------------
Store:
LOAD * INLINE [
StoreID, StoreName
1, Store A
2, Store B
];

Calender:
LOAD MonthID as DateID,Month INLINE [
MonthID, Month
1, Jan
2, Feb
];

Product:
LOAD * INLINE [
ProductID, Product
1, Product A
2, Product B
];

Sales:
LOAD * INLINE [
DateID, StoreID, ProductID, SaleQty, SaleValue
1, 1, 1, 2, 23
1, 1, 2, 4, 24
2, 1, 1, 4, 33
2, 1, 2, 3, 28
1, 2, 1, 2, 21
1, 2, 2, 4, 30
2, 2, 1, 3, 25
];

Budget:
LOAD * INLINE [
StoreID, ProductID, BudgetQty, BudgetValue
1, 1, 5, 50
1, 2, 6, 47
2, 1, 5, 41
2, 2, 4, 27
];

Create a Unique key field in both Tables
Create a new table by using Common Fields
Drop Common fields in both Tables except Unique Key Field


Auf dieser Seite können Sie das Online-Video How to avoid Synthetic keys (Fact tables)? Creating Link/Key tables - QlikView Tutorial Session 20 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Trending Courses 28 Dezember 2018 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 2,670 Mal angesehen und es wurde von 27 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!