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

Hierarchy Problem

$
0
0

Hi,

I have the follow situation, I have 3 dimensions X, Y and Z. In the Dimension X I have relation with Dimensions Y and Z. 

I need create a Hierarchy (using the respective IDs), like this: ID Dimension Z >> ID Dimension Y >> ID Dimension X (Key)

The problema is, if I deploy in this way, return an error that Analysis found a duplicate problem, so to fix that I change the Properties KeyColumns and NameColumn to respect the Hierarchy, so the result is:

ID Dimension Z - KeyColumns: DimensionX.ID Dimension Z - NameColumn: (None)
ID Dimension Y - KeyColumns: DimensionX.ID Dimension Z, DimensionX.ID Dimension Y - Name Column: DimensionX.ID Dimension Y
ID Dimension X - KeyColumns: DimensionX.ID Dimension X (Key) - NameColumn: (None)

Then, when I deploy in that way, returns the following error: "The granularity attribute and intermediate granularity attribute should have same number of key columns (the granularity has 1, the intermediate granularity has 2).", thats occurs cause I relates the Dimension Y in my Measure using the Referenced RelationShip with Dimension X, but now I have a composite key in the column DimensionX.ID Dimension Y. How can I fix that? Create the Hierarchy and still having this relationship of DImensions with my Measure?

Tks



Viewing all articles
Browse latest Browse all 14337

Trending Articles



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