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

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.

主站蜘蛛池模板: 洛阳市| 洛扎县| 九台市| 九龙坡区| 桐城市| 衡水市| 水富县| 浙江省| 堆龙德庆县| 彝良县| 南皮县| 崇左市| 报价| 成武县| 拉孜县| 射洪县| 蒲城县| 沁水县| 璧山县| 开江县| 久治县| 扶余县| 丰都县| 祁东县| 南部县| 平远县| 惠来县| 小金县| 浦城县| 钟祥市| 外汇| 苏州市| 蛟河市| 晋宁县| 海盐县| 苏尼特右旗| 九台市| 辰溪县| 安化县| 南涧| 罗甸县|