Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

Add a Region-Country dimension with many to many relationship

$
0
0

I am designing a Cube in BIDS 2012 and I encountered a many to many relationship, which is actual really common, that is giving me some trouble.

In my fact table I have TotalSales measure that has Country,Customer and Edition (of Product) as dimensions. At the beginning I used justCountry but now I have been asked to use Region, which is an higher hierarchical level of Country. 

Basically a Region contains multiple Countries and a Country can belong to multiple Regions. For instance the Country Italy can be placed inside the regionSouth-Europe and Europe. There is no relationship among Regions, so Europe and South-Europe are considered two distinct Regions and South-Europe is not a sub-region of Europe.

The schema is a s follows:

With this schema I can process the cube but I just take inside the Dimension Structure the tableCountry, ignoring the CountryRegion and Region tables. If I take the RegionID from any of the two tables into my dimension the process fails:

Errors in the high-level relational engine. The 'dbo_CountryRegion' table that is required for a join cannot be reached based on the relationships in the data source view.

I tried different combinations, also disconnect Coutry from the Fact Table and linking the CountryRegion table on the Country attribute of the fact table on Country.lngID = FactSalesTableTEST.Country but when I process the dimension I always get a processing Error.

I would like to have a dimension Coutry with a Region-Country hierarchy based on this schema. How can I achieve my goal?


Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>