Goal:
Display the data of column ProductSubcateoryname into the table DimProduct.
Problem:
The data of column ProductSubcateoryname exist only in the table DimProductSubcategory but not in the table DimProduct.
How should I enable to make the data of column ProductSubcateoryname to be available in table DimProduct by using Analysis service?
There are several possibilities:
ProductSubcategoryKey
as a - probably invisible - attribute in your product dimension. Then go to the cube object, "Dimension Usage" tab, and for each measure group, click on the rectangle at the intersection of the measure group and the Subcategory dimension, and set the relation type to "Referenced", select the intermediate dimension "Product", and select the subcategory key as join key for both sides.SELECT p.ProductKey, p.ProductLabel, ... -- all DimProduct columns ,s.ProductSubcategoryLabel, ... -- all DimProductSubcategory columns FROM DimProduct p INNER JOIN DimProductSubcategory s ON p.DimProductSubcategorykey = s.DimProductSubcategoryKey