I have a simple set of tables with one fact table and 4 dimension tables but I am unable to create relationships between them.
The Dim tables have unique clustered index on their Key columns and I have created relationships in the DB however they are not picked up by the wizard and when I try to create the relationship in the Tabular Model Designer I get the following:
============================
Error Message:
============================
The relationship cannot be created because each column contains duplicate values. Select at least one column that contains only unique values.
============================
Call Stack:
============================
at Microsoft.AnalysisServices.Common.RelationshipController.CreateRelationship(DataModelingColumn sourceColumn, DataModelingColumn relatedColumn)
at Microsoft.AnalysisServices.Common.RelationshipController.CreateRelationship(String fkTableName, String fkColumnName, String pkTableName, String pkColumnName)
at Microsoft.AnalysisServices.Common.SandboxEditor.erDiagram_CreateRelationshipCallBack(Object sender, ERDiagramCreateRelationshipEventArgs e)
at Microsoft.AnalysisServices.Common.ERDiagram.OnCreateRelationship(String fkTable, String fkColumn, String pkTable, String pkColumn)
at Microsoft.AnalysisServices.Common.ERDiagram.ERDiagramActionCreateRelationship.Do(IDiagramActionInstance actionInstance)
============================
Any help appreciated,
Amit