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

Time for action – using the Dimension Designer

The Dimension Usage tab is a specific designer for dimensions in the SSDT. In the next example, you will see how to create new attributes using the Dimension Designer:

  1. In the Solution Explorer, right under dimensions, double-click on Sales Territory.
  2. A new designer window will be opened; this designer is called a Dimension Designer.
  3. In the Dimension Structure tab, drag-and-drop Sales Territory Region from the Data Source View pane to the Attributes pane.
  4. Do this for Sales Territory Group and Sales Territory Country as well.
  5. Select Sales Territory Key in the Attributes pane, and then in the Properties window, change the AttributeHierarchyVisible property of this attribute to false.
    Time for action – using the Dimension Designer
  6. Save the changes and process the dimension. You can process the dimension with the Process button, which is the second button from the top left-hand side of the dimension structure tab.
  7. Go to the Browser tab in the Dimension Designer and then reconnect to a process (you can see how to reconnect to a process in the next screenshot). Select Sales Territory Country in the hierarchy drop-down list and you will then see the dimension member values listed in the browser:
    Time for action – using the Dimension Designer

What just happened?

The Dimension Designer used in this example adds new attributes to the Sales Territory dimension. To create a new attribute, you can simply drag-and-drop it from the data source view, but sometimes the data source view doesn't contain the appropriate column, which forces you to change the data source view (in the next chapter, you will see how to make changes in the DSV).

You can also change the properties of the dimension attributes in the Dimension Structure tab. For example, we changed AttributeHierarchyVisible of Sales Territory Key to false, and as a result, this attribute was not shown directly in the browser. There are some properties and configurations for each attribute. The following list shows the most useful properties of attributes:

To run this example, you need to deploy the changes and the process again; this step is required after each change that you make in the metadata of the SSAS cube, dimension, or measures. For the next example, we will use the OrderBy and OrderBy Attribute properties to change the ordering of a dimension attribute.

主站蜘蛛池模板: 乌拉特中旗| 项城市| 万全县| 准格尔旗| 老河口市| 宜章县| 汨罗市| 花莲县| 定西市| 唐山市| 拜城县| 息烽县| 额敏县| 安新县| 乌兰浩特市| 电白县| 农安县| 攀枝花市| 辉县市| 宜州市| 绍兴市| 南召县| 平顶山市| 琼结县| 内乡县| 疏附县| 纳雍县| 焦作市| 莫力| 靖宇县| 且末县| 澎湖县| 靖边县| 寿宁县| 丹凤县| 喀什市| 两当县| 永清县| 丹江口市| 黄梅县| 水城县|