Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8450335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:56:32+00:00 2026-06-10T10:56:32+00:00

Is it possible to connect to a PowerPivot model in an Excel .xlsx file?

  • 0

Is it possible to connect to a PowerPivot model in an Excel .xlsx file? (Not hosted on a SharePoint site… just the local file).

It must be, since Tableau can do it.

Anyone have any clues?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T10:56:34+00:00Added an answer on June 10, 2026 at 10:56 am

    Short answer:

    • Yes

    Long answer:

    • Updated versions of either Excel or PP (maybe even Office service packs?) could break your code
    • We were successful in connecting to the PP model using AMO (to add tables to the data source view, add dimensions, add measures, and refresh the model from external DBs). We found Tabular AMO library on codeplex (https://tabularamo2012.codeplex.com/) to be VERY helpful.
    • We were successful in connecting to the PP model using ADO (but not ADOMD) to query the model (for instance, query the value of a measure).

    References/Credits:

    • https://gobansaor.wordpress.com
    • http://sqlblog.com/blogs/default.aspx
    • http://powerpivotgeek.com/2009/11/11/a-peek-inside-the-client-architecture/#comments

    Details:

    • Like @gobansaor, we found that starting with a workbook which already had a connection to the PP cache was helpful (necessary?). Before connecting to the PP cache via AMO for instance, we make sure the connection is alive:

      ThisWorkbook.Connections["PowerPivot Data"].Reconnect()

      or

      ThisWorkbook.Connections["PowerPivot Data"].Refresh()

    • The connection string template we used for AMO was: Provider=MSOLAP;Data Source=$Embedded$;Locale Identifier=1033;Location={0};SQLQueryMode=DataKeys and we filled that in with ThisWorkbook.FullName

    • Following @gobansaor, we connected to the cube via ADO using:

      ADODB.Recordset recordSet = new ADODB.Recordset();

      recordSet.Open("SELECT [Measures].[Min of Field1] ON COLUMNS FROM [Model]",
      ThisWorkbook.Connections["PowerPivot Data"].OLEDBConnection.ADOConnection);

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

it is possible to connect the site pages with layout page in sharepoint 2010.
Is it possible to connect the emulator to Wi-fi? Since am not using eclipse
Is it possible to connect two PCs without a router using just an ethernet
Is it possible to connect Visual Studio 2010 Professional edition to TFS (project hosted
Possible Duplicate: How do I connect to a USB webcam in .NET? I just
Is it possible to connect Excel 2007 or Excel 2010 directly with SQL Server
Is it possible to connect to an Analysis Services Database (2008) from Excel 2007
Is it possible to connect to a site using SSL where the client only
Is there any possible to connect .NET app with PHP? I means, PHP will
Is it possible to connect Eclipse to an already running app without restarting the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.