In this lesson, you will create a dimensional model to enable multidimensional analysis of collected data.
The Clips and Tacks dimensional model will be used for the organization of a dimensional analysis widget to be included on the dashboard that will show the aggregation of orders (instances) by their order status.
- Click the Dimensional Model tab and expand .
- Create a new dimension.
- Right-click the Orderhandling Cube and select .
- Enter Order Status as the name and click OK.
- Right-click Order Status in the navigation, and then select .
- Enter Order Status as the name and click Browse to find the source metric. Select Order Status. Click OK and then click OK again.
- You want a multilevel dimension called Location that lets you drill down on the country and then the city within the country. To enable the Location dimension, you need to create metrics for the country and city, and then you can complete the Location dimension to refer to these metrics.
- Create a metric called Country by clicking the Monitor Details Model tab, right-clicking the OrderHandling monitoring context, and selecting .
- Enter Country as the name and leave the type as String, then click OK.
- Select A value is required for this metric because a dimension uses this metric and requires a value for dimensional analysis. For the default value, enter an empty string (two single quotation marks).
- In Metric Value Expressions, click Add. In the expression cell, use the content assistant to navigate to the event then select Country in the order data under Customer.The resulting expression is OrderHandling2/OrderHandlingEXIT/Order/Customer/Country.
- Repeat the necessary steps to create a metric called City. The resulting expression is OrderHandlingReceive/OrderHandlingReceiveEXIT/Order/Customer/City.
- Update the Location dimension using the Country and City metrics:
- Click Dimension Model tab. Navigate to the . Notice that there is a dimension level called Location underneath the Location dimension.
- Right-click Location underneath the Location dimension and select Delete.
- Right-click the Location dimension and select .
- Enter Country as the name, and then click Browse to find the source metric and select . Click OK.
- Right-click the Location dimension and select .
- Enter City for the name, then click Browse to find the source metric and select . Click OK. The resulting Location is shown in the following screen capture.
- Save your work.
- Select , and then select Clean all projects. Click OK.
- Warnings and informational messages might be present and can be ignored. Check for any errors in the Problems view and resolve the errors before continuing.