Product Dimension view

As shown in the database diagram schema referenced in Chapter 1, Planning Power BI Projects, it's recommended to provide a consolidated or de-normalized dimension for datasets. In the following view (BI.vDim_Product), three product dimension tables are joined and a logical column, Product Category Group, is created to support a common reporting and analysis need:

SELECT  P.ProductKey as 'Product Key', P.ProductAlternateKey as 'Product Alternate Key', P.EnglishProductName AS 'Product Name', ISNULL(S.EnglishProductSubcategoryName, 'Undefined') 'Product Subcategory', ISNULL(C.EnglishProductCategoryName, 'Undefined') AS 'Product Category', CASE   WHEN C.EnglishProductCategoryName = 'Bikes' THEN 'Bikes'  WHEN C.EnglishProductCategoryName ...

Get Mastering Microsoft Power BI now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.