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

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.

主站蜘蛛池模板: 南靖县| 禹州市| 张家港市| 深州市| 凤庆县| 大同县| 抚远县| 茶陵县| 广河县| 高平市| 辽阳县| 霍山县| 临邑县| 秭归县| 会宁县| 乌拉特后旗| 沙河市| 巴彦县| 大丰市| 林口县| 昌平区| 贵德县| 黄大仙区| 聂拉木县| 吴忠市| 东源县| 汝城县| 呼玛县| 新竹市| 长子县| 平安县| 武城县| 昌吉市| 随州市| 上栗县| 磐安县| 大化| 项城市| 金平| 汕头市| 文水县|