In many scenarios developers must deal with many cubes in the same project and share dimensions between them. It’s easy to set up something like this but try to imagine situation when one cube musts be browsed by fiscal dates and the others need to use calendar dates. It is not a problem when we don’t have shared dimensions in our solution but for some people it must be done with shared dimensions. But don’t be afraid – there is very simple solution to achieve our goal.
Let’s look at AdventureWorks Multidimensional project (You can download it from here). There are two cubes: Adventure Works and Mined Customers. Both of them use Date dimension – we need to set for Adventure Works to see only Calendar hierarchy and Mined Customers need to see Calendar and Fiscal hierarchies – let’s do this!
First of all open Cube designer of Adventure Works and go to Cube Structure tab. There is dimensions window and there we need to find Fiscal hierarchy:
The only thing that you need to set up Visible property of Fiscal hierarchy to False.
That is all! From now shared dimensions could be more flexible to use. Thank you!
Latest posts by Adrian Chodkowski (see all)
- SQLDay 2017 – one of the best data platform conferences - January 16, 2017
- Analysis Services Tabular translations and Tabular model explorer - December 18, 2016
- SQL Server 2016 is available! - June 1, 2016