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

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.

主站蜘蛛池模板: 依兰县| 营山县| 特克斯县| 阜宁县| 中卫市| 垫江县| 灌南县| 宜君县| 清镇市| 东阳市| 若羌县| 永康市| 婺源县| 天气| 渑池县| 体育| 安达市| 阳春市| 高尔夫| 探索| 汽车| 临西县| 牡丹江市| 海宁市| 灵山县| 仲巴县| 清水县| 廉江市| 拜城县| 疏附县| 乐业县| 忻城县| 诏安县| 金山区| 大名县| 海口市| 桦甸市| 武义县| 中西区| 潮安县| 翼城县|