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

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?
主站蜘蛛池模板: 麻栗坡县| 安陆市| 普兰县| 手机| 富顺县| 兰西县| 柳州市| 西乌珠穆沁旗| 海伦市| 孝昌县| 林芝县| 柯坪县| 呼玛县| 建瓯市| 华阴市| 沁源县| 巩义市| 白城市| 霍城县| 广平县| 高密市| 临清市| 祥云县| 冕宁县| 巴中市| 稻城县| 长武县| 南郑县| 台湾省| 阿尔山市| 长泰县| 博客| 高雄县| 内丘县| 玛沁县| 平昌县| 金乡县| 辽中县| 娱乐| 天门市| 朝阳市|