官术网_书友最值得收藏!

Time for action – creating a hierarchy

In this example, we will see how a user can create hierarchies in the browser and how a developer can create a predefined hierarchy for business requirements by performing the following steps:

  1. Go to the cube Browser, drag-and-drop Calendar Year, Month, and Date, one after another. Then, drag-and-drop Sales Amount and Order Quantity. You will see a hierarchy created dynamically from the browser.
  2. Now, go to the product's Dimension Designer, drag-and-drop the EnglishProductCategory name into the Attributes pane, and rename it Product Category. Do the same for EnglishProductSubcategoryName and rename it Product Subcategory. Rename the Product Key attribute Product and change its name column to EnglishProductName.
  3. Drag-and-drop Product Category from the Attributes pane into the Hierarchies pane.
  4. A new hierarchy will be created; rename it Product Category Hierarchy.
  5. Drag-and-drop the product Subcategory under the Product Category option (in the <new level> area), and then add Product under that.
  6. Select Product Category and change the AttributeHierarchyVisible option of this attribute to false. Do this for the Product Subcategory and Product attributes as well.
  7. In the Dimension browser, you will see that only Product Category Hierarchy is listed, and the values of this hierarchy have created a tree of Product Category, Subcategory and Product.
    Time for action – creating a hierarchy

What just happened?

In this example, you created a user hierarchy easily with just a few drag-and-drops. The hierarchy of this example is created from one table. Creating hierarchies from multiple related tables is as simple as creating a hierarchy from a single table; you just need to import attributes from the Data Source View pane into the attributes area and you can then create a hierarchy based on the attributes.

You also saw that after creating Product Category Hierarchy, we set the visibility of the attributes to false. As the user can access the Product Category, Subcategory, and Product attributes through Product Category Hierarchy, there is no need to have separate attributes. Making them invisible from the user's perspective will reduce the user's confusion with regards to too many attributes.

主站蜘蛛池模板: 涟源市| 绍兴县| 绍兴县| 阿坝县| 祥云县| 宜都市| 县级市| 巫山县| 镇江市| 河池市| 鹰潭市| 台湾省| 新田县| 柘荣县| 南皮县| 太和县| 南召县| 柳州市| 和平县| 百色市| 拉萨市| 新津县| 罗甸县| 黔南| 林口县| 邵东县| 临朐县| 宁德市| 修文县| 三门峡市| 岱山县| 天门市| 彰化县| 利川市| 宣恩县| 南木林县| 宁都县| 宾阳县| 麟游县| 赤壁市| 白水县|