• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Pivot Tables with External Connections|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Pivot Tables with External Connections|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Pivot Tables with External Connecti…
sp_PrintTopic sp_TopicIcon
Pivot Tables with External Connections
Avatar
PaulFogel
Member
Members
Level 0
Forum Posts: 81
Member Since:
July 7, 2016
sp_UserOfflineSmall Offline
1
May 22, 2019 - 4:38 am
sp_Permalink sp_Print

I created a Pivot Table with an external connection to another Excel file and it's Excel table. It works just the same as a normal Pivot Table with an Excel table in the same file. However, I'm finding that it's unstable. When the source file is not open, the Pivot Table won't refresh. If the source file is not open and the Pivot Table is set to automatically refresh, it may cause Excel to crash.

I have the source table in a separate file because it's a million rows and very large. The Pivot summarizes this to a few thousand rows, greatly improving performance and response time. Is there something else I should try? Or perhaps another approach?

Paul

sp_AnswersTopicSeeAnswer See Answer
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4438
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
May 22, 2019 - 2:49 pm
sp_Permalink sp_Print

Hi Paul,

Use Power Query to get the data from the external file and load it to the Pivot Table as a connection only. Power Query is the opposite in that it will require the file to be closed in order to refresh the data connection.

Mynda

sp_AnswersTopicAnswer
Answers Post
Avatar
PaulFogel
Member
Members
Level 0
Forum Posts: 81
Member Since:
July 7, 2016
sp_UserOfflineSmall Offline
3
June 5, 2019 - 7:05 am
sp_Permalink sp_Print

Thanks for this.

I did run into some problems with the source file Excel table, however. I opened a new file and loaded the data with an external connection. Then I created a Pivot Table, but one of the fields in the source table relies on links to another file. The Pivot Table loaded it as zero, the default value for that field. I figured maybe the links can't be updated when using that field in a Pivot Table with external connection. Another odd thing is that the source file has many Excel tables, yet creating the Pivot with External Connection Only showed the worksheet tabs when preparing for import, not the table names.

As a test, I copied and pasted the source values into a new file and created a table from it. I imported it into another new file using Connection Only, and was able to successfully create the Pivot. The table name displayed in the import wizard. As a further test, I added a table in a new tab in the source file, and there again, no problem.

It doesn't seem like the original issue is caused by either links or other tables in the source file, but maybe there's a quantity limit. I looked on your site for rules governing the import of data into a file using Connection Only, but I didn't find one. Are there rules or guidelines?

Paul

Avatar
PaulFogel
Member
Members
Level 0
Forum Posts: 81
Member Since:
July 7, 2016
sp_UserOfflineSmall Offline
4
July 2, 2019 - 1:14 pm
sp_Permalink sp_Print

I wanted to follow up on this for the benefit of others.

It turns out that the issue was caused by using the .xlsb (binary) file format. I use this format for large files because it both reduces file size considerably and allows VBA. Creating a Pivot Table with external connection requires that the source (if Excel) file be in standard .xlsx format. I don't know why that should matter, but it does.

Paul

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 870
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
5
July 3, 2019 - 1:33 am
sp_Permalink sp_Print

Hi Paul,

Thanks for the update!

Avatar
PaulFogel
Member
Members
Level 0
Forum Posts: 81
Member Since:
July 7, 2016
sp_UserOfflineSmall Offline
6
July 4, 2019 - 9:30 am
sp_Permalink sp_Print

There is an unexpected complication: I have many Pivot Tables in my Excel model, but only two tables in source file from which they all derive. I created three Pivot Tables successfully, but creating the fourth one did not allow the file to be saved ("Errors were detected"). I created a new connection for each Pivot Table. Is that a problem? Also, when using Get Data>Load To>Connection Only, I kept getting messages to the effect, "There is a problem with the Data model. Please try restarting Excel." When I ignored it, it created the connection anyway. 

There's a problem in here somewhere. Does anyone have any ideas about what went wrong?

Paul

Avatar
PaulFogel
Member
Members
Level 0
Forum Posts: 81
Member Since:
July 7, 2016
sp_UserOfflineSmall Offline
7
July 5, 2019 - 11:03 am
sp_Permalink sp_Print

I tried to duplicate this situation in a different blank workbook. I created a bunch of Pivot Tables with the same external connections to the same source data as before--and had no issues at all. If the blank workbook has no problems creating Pivot Tables from external connections, the problem must be the Excel model into which I'm attempting to create these same Pivot Tables.

Any ideas about how to fix this?

Avatar
PaulFogel
Member
Members
Level 0
Forum Posts: 81
Member Since:
July 7, 2016
sp_UserOfflineSmall Offline
8
July 13, 2019 - 3:15 pm
sp_Permalink sp_Print

After much experimentation, I found a solution, and I'm posting this to help others.

When you have multiple Pivot Tables with external connections in a single file, each Pivot Table must have its own connection. So, if you have a Pivot Table that relies on the same external table for its data as another Pivot Table, each Pivot Table must use its own connection. You might end up with many connections to the same external data source, but that's the way it is.

I believe the same rule applies if you are creating a table or any other report from the external data. No sharing is allowed or you'll run into problems.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Laurence Chapman, Ben Hughes, Alison West, Manjula Mangalmurti
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
yashal minahil
Oluwadamilola Ogun
Yannik H
dectator mang
Francis Drouillard
Orlando Inocente
Jovitha Clemence
Maloxat Axmatovna
Ricardo Freitas
Marko Meglic
Forum Stats:
Groups: 3
Forums: 24
Topics: 6201
Posts: 27185

 

Member Stats:
Guest Posters: 49
Members: 31861
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.