Monday, May 09, 2011

One Dimension – Multiple Hierarchies


There was a question yesterday on the forums regarding the usage/availability of Multiple Hierarchies for a single dimension. I thought i would blog about it since there is very little documentation on this. Now let us take an example and try to understand what multiple hierarchies are and where they are used. Classic example for this would be the Time Dimension. In time dimension we can have a hierarchy based on Calendar Year, Quarter, Month and Day and the Fiscal Year, Quarter, Month and Day. BI EE can accommodate such possible multiple hierarchies within the same dimension. Let’s try to build one for a Product Dimension. There are certain ground rules for building multiple hierarchies for the same dimension.
1.   There must be a unique key for the dimension at the lowest level.
2.   This unique key must be shared by all the multiple hierarchies i.e. all the hierarchies should have their last levels as a level with the unique key.
3.   All the hierarchies should roll up to the top Total Level. And Top Level attributes should not have a Logical Key defined.
In our case, we have a unique key called DIMENSION_KEY which would form the last level. Our aim is to build 2 hierarchies like this

               Total Level
   Pack Size                  Category
   Products                    Sub-Category
               DIMENSION_KEY
i.e
Hierarchy1 = Total Level -> Pack Size -> Products -> Unique Dimension Key
Hierarchy2 = Total Level -> Category -> Sub-Category -> Unique Dimension Key 

As you see above DIMENSION_KEY is a shared level by both Products and sub-category. Now let’s start building the hierarchy.



Once we have reached till the 3 level for both the hierarchies, create a child level for the level Sub-Category. The child level would be DIMENSION_KEY.
After this create a Shared Child Level for the Products level and use the DIMENSION_KEY for this shared level.

Now we have basically created a dimension containing 2 hierarchies. Just test it out to see whether you get the proper drill downs.












10 comments:

  1. Appreciation for nice Updates, I found something new and folks can get useful info about BEST OBIEE ONLINE TRAINING

    ReplyDelete
  2. Appreciation for nice Updates, I found something new and folks can get useful info about BEST obiee ONLINE TRAINING

    ReplyDelete
  3. awful piece of information, I had come to know about your blog from my friend vimal, mumbai,i have read atleast 13 posts of yours by now, and let me tell you, your blog gives the best and the most interesting information. This is just the kind of information that i had been looking for, i'm already your rss reader now and i would regularly watch out for the new posts, once again hats off to you! Thanks a million once again, Regards,obiee online training

    ReplyDelete
  4. Nice information. Our institute Is the Leading online institute in Hyderabad, India to provide obiee online trainings with the real time experts and certified professionals. alot OBIEE Online Training.

    >

    ReplyDelete
  5. Usually I never comment on blogs but your article is so convincing that I never stop myself to say something about it. You’re doing a great job Man, Keep posting more blog like this thank you...........
    R12 Financials Training

    ReplyDelete
  6. Great post thanks to shared about to reading product dimensions.

    How to read product dimensions

    ReplyDelete
  7. no clue by the author as well as readers . What goes on behind the scene is 2 diff mappings /physical dimesnsions

    ReplyDelete
  8. The above blog information provided above is really very nice.by your informartion i can improve my technical skills more. OBIEE online Training

    ReplyDelete
  9. Such a great word which you use in your article and article is amazing knowledge. thank you for sharing it.

    Softgen Infotech is a leading training institute for all kind of the Best Python Training in Bangalore with real-time experienced trainers with 100% Placement Assistance.

    ReplyDelete