This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
***********
This post is outdated and has been replaced with the following:
The Conceptual Data Model and Limitshttps://blogs.technet.com/b/powerbisupport/archive/2015/08/11/the-conceptual-data-model-and-limits.a...
***********
When using an Excel workbook, you will encounter some limitations with regards to the file size. I’ve had to explain this a few times to folks, so I wanted to get this out to make sure people understood what those limits are. Here are the different scenarios that you could encounter. I will go through each one.
|
|
Workbook Size |
Data Model Size |
Requires Power BI License |
Action Required* |
|
Scenario 1 |
< 10mb |
No Model |
NO |
NO |
|
Scenario 2 |
> 10mb |
N/A |
N/A |
N/A |
|
Scenario 3 |
< 10mb |
< 10mb |
NO |
NO |
|
Scenario 4 |
< 10mb |
> 10mb & < 30mb |
YES |
NO |
|
Scenario 5 |
< 10mb |
> 30mb & < 250mb |
YES |
YES |
|
Scenario 6 |
< 10mb |
> 250mb |
N/A |
N/A |
At the bottom of this post you will find how to determine the sizes within an Excel Workbook.
When we try to open this workbook within Excel Online, we will see the following message.
If you go into the old Power BI Sites and try to enable the report, you will see the following error.
If the Data Model itself, regardless of the Excel file size, is over 10MB, we require a Power BI License for that user. If you don’t have a Power BI License assigned, you will get an error similar to the following.
The other action we need to take here is to either enable the workbook within the old Power BI Sites, or to pull in the Excel Workbook within the new Power BI Dashboard site (app.powerbi.com). Within the new site, the workbook needs to be hosted on OneDrive for Business to use the Excel Online App.
If you have not taken one of the above actions, you would see an error similar to what we saw in Scenario 4 within Excel Online.
Enable in Power BI Sites
When you try to enable the report within the old Power BI Sites, you will see the following error.
PowerBI.com via Get Data
When you click on Connect within the Get Data screen, you will see the following message.
- Total file size- Workbook Size- Data Model sizeTo accomplish this, we can get the total file size, by just going to properties of the file within Explorer. This will tell you the file size. Let’s look at my Large File to see what it’s size is.
Total File Size here is 140,083,398 bytes (133MB). Now, what we can do, to find the Data Model, is to rename the excel workbook to a .zip extension. After doing that, open the zip file, go into the XL Folder and then the Model folder. You will see an item.data file. This is the Data Model file. We want to get the size of that. The compressed and actual size will be the same for this item.
The Data Model size is 59,784,000 bytes (about 58MB). Next we do a little math. Take the total file size and subtract the Data Model size to get the workbook size.
[Total File Size] – [Data Model Size] = [Excel Workbook Size]So, our workbook alone is about 76.5MB which will stop everything. The Data Model itself is ok. In this case, when we pulled data into the workbook, we pulled it in to the Data Model, and added it to a worksheet. This bloats the workbook if your intent is only to use the Data Model and Power View Reports, or something like a Pivot Chart or Pivot Table. To avoid this, when you pull data in via the Excel Data Tab or Power Query, you can choose to only add it to the data model, and not to an excel sheet.140,083,398 (133MB) – 59,784,000 (~58MB) = 80,299,398 (~76.5MB)
![]()
[Total File Size] – [Data Model Size] = [Excel Workbook Size]
367,363,383 (350MB) – 358,704,000 (~342MB) = 8,659,383 (~8.25MB)In this example, our workbook size is ok, but our data model is well over the 250MB limit.
Adam W. Saxton | Microsoft Business Intelligence Support - Escalation Services@GuyInACube | Mixes | YouTube | Facebook.com\guyinacube
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.