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

Time for action – viewing the cube in the browser

After creating the cube, you can view it in the cube browser. There are two ways to open the cube browser: through SQL Server Management Studio and through the built-in cube browser in the SSDT. The SSMS cube browser will be useful when we deploy the cube to an SSAS Server (for details on deployment, refer to the Deploying and processing section of this chapter). For this example, we use the SSDT cube browser.

To browse the cube, processing is required. Processing is the process of extracting data from a data warehouse, applying the cube's calculations and structures to it, and loading it into the OLAP cube's structure. Perform the following steps to view the cube:

  1. In Solution Explorer, right-click on the project Chapter 02 SSAS Multidimensional and choose Process.
  2. You will see a dialog box stating The Server contents appears to be out of date. Would you like to build and deploy the project first?. Answer it by clicking on Yes.
  3. In the Process window, leave all the configurations as the default and click on Run.
  4. After completing the Process Progress step, close the Process window.
  5. Go to the Browser tab, which is the last tab in the cube designer.
  6. If you've got a message saying that the database does not exist or the cube is not up to date, try to reconnect the browser. You can click on the Reconnect button, which is the third icon from the top left-hand side of the Browser tab.
  7. In the Browser tab, from the Metadata pane, under the Internet Sales measures, drag-and-drop Sales Amount into the main empty pane in the middle. Do the same for the Order Quantity measure.
  8. You will see a grand total of Sales Amount and Order Quantity calculated from the cube.
  9. From the Metadata pane, under the Sales Territory dimension, drag-and-drop Sales Territory Key into the main pane as shown in the following screenshot:
    Time for action – viewing the cube in the browser

What just happened?

You deployed and processed the cube in the previous example in order to be able to view the cube in the browser. In the last section of this chapter, we will discuss deployment and processing in more detail.

Viewing the cube in the browser of SSDT helps SSAS developers to check the frontend view of the cube from the user's perspective. In this example, you've seen the grand total of Sales Amount shown easily with a drag-and-drop in the browser window.

Slicing and dicing the Sales Amount by Sales Territory is also easily done by dragging-and-dropping the Sales Territory Key dimension in the browser. However, you probably noticed that the Sales Territory dimension only has one attribute, which is a key, and the key numbers don't make sense for a business user. So, for the next section, we need to bring descriptive information as additional attributes in the Sales Territory dimension and other dimensions of the cube.

On the other hand, the Sales Amount and Order Quantity dimension scan be shown with thousand separators and with a suitable format (for example, currency for the sales amount) in order to be more appropriate from the user's point of view. In the next section, we will change the display format of measures.

主站蜘蛛池模板: 郧西县| 连城县| 武安市| 民乐县| 天全县| 陵川县| 长丰县| 茂名市| 民勤县| 开原市| 宁陵县| 饶平县| 浪卡子县| 新竹市| 安国市| 临西县| 台州市| 博兴县| 凭祥市| 易门县| 定结县| 鄯善县| 延庆县| 马公市| 张掖市| 齐河县| 宿松县| 海兴县| 扶风县| 沅江市| 抚顺市| 肇源县| 大理市| 东乡族自治县| 甘孜| 淳化县| 南靖县| 宕昌县| 齐齐哈尔市| 奇台县| 光泽县|