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

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.

主站蜘蛛池模板: 鸡泽县| 德格县| 湄潭县| 资中县| 新源县| 武川县| 磐安县| 合肥市| 原阳县| 大连市| 河曲县| 手游| 平果县| 临澧县| 九台市| 怀化市| 中牟县| 蚌埠市| 炉霍县| 田阳县| 山西省| 西畴县| 天等县| 康保县| 金沙县| 恭城| 江北区| 益阳市| 陇西县| 广东省| 来安县| 襄樊市| 兴仁县| 舟曲县| 太原市| 仙桃市| 旬邑县| 神池县| 马鞍山市| 修文县| 那曲县|