Hello All,
Till Toady, I knew that a Database Dimension can be shared across Multiple cubes in Same SSAS Database But this is notalways true. I tried below and found followings:
I tried creating a cube using more than 1 DSV and It is not allowed. So Cube can have Measures only from 1 DSV.
I can create a Dimension under Dimensions from more than 1 Data Source View.
Scenario 1: Have only one Data Source
I have one Data Source: DS-1 and 2 Data Source View
- DSV-1 (Data Source: DS-1 (primary))
- DSV-2 (Data Source: DS-1 (primary))
Note: Data Source View can have tables/View/Named
Query from multiple Data Sources but each Data Source View has one Primary Data Source
Now, I created a Database Dimension-1 which is using DSV-1 and Database Dimension-2 which is using DSV-2
Created a cube called Cube-1 using DSV-1 and then I tried to add Dimension-2 ( which is coming from DSV-2) in Cube-1 and It isALLOWED.
Conclusion: If you have Multiple Data Source Views
and all Data Source Views have same (primary) Data Source: DS-1 (primary), Then Database dimensions can be shared across multiple cubes, no matter from which Data Source View Dimension is coming
Scenario 2: Have more than one Data Source
I have 2 Data Sources: DS-1 & DS-2
Also have 2 Data Source Views:
- DSV-1 (Data Source: DS-1 (primary))
- DSV-2 (Data Source:DS-2 (primary))
Note: Data Source View can have tables/View/Named
Query from multiple Data Sources but each Data Source View has one Primary Data Source
Now, I created a Database Dimension-1 which is using DSV-1 and Database Dimension-2 which is using DSV-2
Created a cube called Cube-1 using DSV-1 and then I tried to add Dimension-2 ( which is coming from DSV-2) in Cube-1 and It isNOT ALLOWED.
Conclusion: Database dimensions cannot be shared
across multiple cubes, If they are coming from 2 different Data Source Views who have 2 different Primary Data Sources.
Please correct me If I am wrong.
Thanks Shiven:) If Answer is Helpful, Please Vote