Import from Power Pivot
Applies to: SQL Server Analysis Services Azure Analysis Services Power BI Premium
This article describes how to create a new tabular model project by importing the metadata and data from a Power Pivot workbook by using the Import from Power Pivot project template in SQL Server Data Tools.
Create a new Tabular Model from a Power Pivot for Excel file
When creating a new tabular model project by importing from a Power Pivot workbook, the metadata that defines the structure of the workbook is used to create and define the structure of the tabular model project in SQL Server Data Tools. Objects such as tables, columns, measures, and relationships are retained and will appear in the tabular model project as they are in the Power Pivot workbook. No changes are made to the .xlsx workbook file.
Tabular models do not support linked tables. When importing from a Power Pivot workbook that contains a linked table, linked table data is treated as copy\pasted data and stored in the Model.bim file. When viewing properties for a copy\pasted table, the Source Data property is disabled and the Table Properties dialog on the Table menu is disabled.
There is a limit of 10,000 rows that can be added to the data embedded in the model. If you import a model from Power Pivot and see the error, "Data was truncated. Pasted tables cannot contain more than 10000 rows" you should revise the Power Pivot model by moving the embedded data into another data source, such as a table in SQL Server, and then re-import.
There are special considerations depending on whether or not the workspace database is on an Analysis Services instance on the same computer (local) as SQL Server Data Tools or is on a remote Analysis Services instance..
If the workspace database is on a local instance of Analysis Services, you can import both the metadata and data from the Power Pivot workbook. The metadata is copied from the workbook and used to create the tabular model project. The data is then copied from the workbook and stored in the project's workspace database (except for copy/pasted data, which is stored in the Model.bim file).
If the workspace database is on a remote Analysis Services instance, you cannot import data from a Power Pivot for Excel workbook. You can still import the workbook metadata; however, this will cause a script to be run on the remote Analysis Services instance. You should only import metadata from a trusted Power Pivot workbook. Data must be imported from sources defined in the data source connections. Copy/pasted and linked table data in the Power Pivot workbook must be copied and pasted into the tabular model project.
To create a new tabular model project from a Power Pivot for Excel file
In SQL Server Data Tools, on the File menu, click New, and then click Project.
In the New Project dialog box, under Installed Templates, click Business Intelligence, and then click Import from Power Pivot.
In Name, type a name for the project, then specify a location and solution name, and then click OK.
In the Open dialog box, select the Power Pivot for Excel file that contains the model metadata and data you want to import, and then click Open.