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

Time for action – creating a tabular project

In this example, based on data in the AdventureWorksDW2012 database, we will create a tabular project with SSDT from an empty project. You will see a variety of data sources that are supported and how easy it is to work in the tabular modeling environment.

  1. Open SSDT, and from the Files menu, choose a new project, and then from the Business Intelligence templates under Analysis Services, choose Analysis Services Tabular Project. Name this project Chapter 03 Tabular.
  2. You might see a dialog box titled tabular model designer that asks for a tabular connect option, so enter the SSAS Tabular server's connection details and click on OK.
  3. A new tabular project will be created. Now, from the Model menu, choose Import from Data Source.
  4. In the Import Table Wizard, you will see a list of data source types that can be used to import data. Choose Microsoft SQL Server and continue.
    Time for action – creating a tabular project
  5. Create a connection to AdventureWorksDW2012. In the Impersonation Information option, enter the credential details that have the appropriate permission on the underlying database and continue.
  6. Choose Select from a List of Tables and Views to import data in the next step.
  7. In the Select Tables and Views option, select FactInternetSales, and then click on select related tables. Change the name of FactInternetSales and all dimensions by removing the fact or dim prefix from their names such as InternetSales and Date.

    Tip

    You can filter data with the preview and filter buttons and use Excel filtering features to filter data and preview and select it when it looks appropriate for use. For this example, just add tables without any filtering.

  8. The final step will show importing summary; all records will be loaded into a workspace for further development and modeling.
  9. After importing data, you will see the model in the designer. Tabular designer, as you can see, is much simpler than the multidimensional designer.
  10. Under the Model menu, go to View and then Diagram View; you will see a diagram of tables that are related to each other.

What just happened?

Creating a tabular model is as simple as importing data rows from tables or views, but the model will require further modification. In the next sections of this chapter, you will see how to change the model with hierarchies, relationships, and calculations.

SSAS Tabular, as you saw in step 4, supports many types of data sources such as SQL Server, Teradata, Web services, Text files, and more. Also, importing tables and views into the model can be customized with filtering, as mentioned in step 7.

Model designer in a tabular project is very simple; it has two different views, Grid View and Diagram View. The Grid View shows some data rows of each table with columns and properties of each column shown in the properties pane (as shown in the next screenshot). The Diagram View shows how tables relate to each other in a diagram (step 10):

What just happened?
主站蜘蛛池模板: 潞城市| 冀州市| 尚义县| 巴彦县| 大冶市| 区。| 洪泽县| 建宁县| 富源县| 金山区| 连南| 卢龙县| 石台县| 锡林浩特市| 延川县| 原平市| 泗阳县| 原平市| 惠州市| 泾阳县| 阳高县| 广饶县| 永嘉县| 安徽省| 临邑县| 汾西县| 白山市| 沁源县| 安岳县| 西畴县| 咸阳市| 曲阜市| 玉田县| 炎陵县| 阳信县| 晴隆县| 唐山市| 卢氏县| 阿合奇县| 武城县| 如东县|