简体   繁体   中英

Fact and Dimension Data-warehouse Datamart

I have two fact tables (purchase and defect ) and both of them are linked to the same dimension. So my question can i combine the two fact to a single fact table (put all the KPI in a single Fact table ).

Thank you.

A fact table must have a grain defined for it and all measures must adhere to that grain. So if you have two fact tables with the same grain then, technically, you could combine them into a single fact table. Whether that make sense from a usage perspective is a different question.

I assume that your fact tables are linked to more than one dimension each? The fact that they have a dimension in common doesn't mean you can combine them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM