Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest Fabric, Power BI, and SQL learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server Analysis Services
Azure Analysis Services
Fabric/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.
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.
Note
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.
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.
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest Fabric, Power BI, and SQL learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayTraining
Module
Transition from Excel to Power BI - Training
Microsoft's Power BI combines the Power Query's extraction, transformation, and loading capabilities with DAX and a relational data model in a new application with new features.
Certification
Microsoft Certified: Power BI Data Analyst Associate - Certifications
Demonstrate methods and best practices that align with business and technical requirements for modeling, visualizing, and analyzing data with Microsoft Power BI.
Documentation
Analysis Services workspace database
Learn that the tabular model workspace database is created when you create a new tabular model project in Visual Studio with Analysis Services projects.
Create a new tabular model project (Analysis Services)
Learn how to create a new, blank tabular model project in SQL Server Data Tools.
Analysis Services tabular model properties
Learn how model properties affect how the model you are authoring in Visual Studio is built, how it is backed up, and how the workspace database is stored.