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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
yusra
Contributor
Contributor

SCD Type 2

Hi all,

I have transformed the data into star schema and saved it in QVD, now i have to transform it into SCD Type 2.

my data includes 1 fact table and 4 dimension tables.

Fields of fact table are:

ProductIDRegionIDTimeIDSupplierIDQuantity DefectPercentage

Dimension tables have Fields:

Table Product:

ProductIDProductCategoryProductName

Table Time dimension:

TimeIDYearMonth

Table Supplier Dimension:

SupplierIDSupplierName

Table Region Dimension:

RegionIDContinentCountry 

Kindly help me with the script. 🙂

 

2 Replies
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

In the table where SCD should be, add in effective date column. Link that dimension table to fact table with the original unique key and effective date column.

Eg: SCD Dimension talble key = Dimension ID + Effective Date.

       Fact Table = Dimension ID + Transaction Date.

Thanks and regards,

Arthur Fong

Anil_Babu_Samineni

Can't you simply load and see about star schema? PFA

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful