Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
AdrianSko
New Member

Loading ODC file/pivot table to Power Query

Hello, I do have an odc file for excel connection, which after opening is giving me access only to create pivot tables or charts based on the query to which I don't have direct access.

 

Is that possible to load only this pivot table, or directly query output from odc file? I would like to be able to amend the table with other tables, add columns and have the pivot table showing me new data each month, which will be added as a new column in my PBI data model. 

 

Thanks in advance to any good soul willing to reply to that message 🙂

Adrian

 

 

5 REPLIES 5
v-yanjiang-msft
Community Support
Community Support

Hi @AdrianSko ,

Has your problem beed solved? If so, please kindly accept the helpful reply as solution, then we'll close the thread, other people who has the similar problem will benefit from here. Thank you!

 

Best regards,

Community Support Team_yanjiang

v-yanjiang-msft
Community Support
Community Support

Hi @AdrianSko ,

According to your description, you have an ODC file that connects to a data source and allows you to create pivot tables or charts in Excel, but you want to load the data into Power BI Desktop and manipulate it further. I have searched the web for some possible solutions, and here are some of the results I found:

  • One way to load the data from an ODC file into Power BI Desktop is to use Power Query SharePoint folder connector1. This connector allows you to connect to a SharePoint site and access the file information of all the files and subfolders in a SharePoint folder. You can then filter the files by their extension (.odc) and by their name or path to get the ODC file you want. You can then use Power Query to extract the data from the ODC file and transform it as you wish.
  • Another way to load the data from an ODC file into Power BI Desktop is to open the ODC file in Excel and then import the Excel workbook into Power BI Desktop2. This way, you can use the existing pivot table or chart in Excel as a starting point, and then modify it in Power BI Desktop. You can also refresh the data connection in Excel to get the latest data from the source.
  • A third way to load the data from an ODC file into Power BI Desktop is to read the server name and database name in the ODC file, and then connect to them directly from Power BI Desktop3. This way, you can bypass the ODC file and access the data source directly. You can then use Power Query or DAX to query and manipulate the data as you wish.

Reference: Share external data by using an ODC file (Power Query) - Microsoft Support

Loading ODC file/pivot table to Power Query - Power Platform Community (microsoft.com)

Solved: How to connect .odc file or Excel file via Power B... - Microsoft Fabric Community

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

AdrianSko
New Member

Hi foodd, how can I read the source of the odc file? 

foodd
Super User
Super User

The .odc file is the connection within Excel only. Power BI Desktop can't import or directly use it. However, you can read the source in the .odc file. Then connect it from Power BI Desktop. 

Open the ODC file in Notepad to examine the XML format used.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.