Power Query- Access one drive files

sanket_sk

New Member
Joined
Dec 27, 2016
Messages
45
Office Version
365
Platform
Windows
Hi All,

I have small doubt in Power query.

I have files stored at One drive, files are getting updated every week.

Is there any way by which I can connect and update these file through power query (Desktop Excel File).

Sanket
 

Some videos you may like

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

sandy666

Well-known Member
Joined
Oct 24, 2015
Messages
5,830
a) You want to update files on OneDrive from local file
or
b) You want to update local file from OneDrive
 

sanket_sk

New Member
Joined
Dec 27, 2016
Messages
45
Office Version
365
Platform
Windows
I want to keep all base files at one drive (Online) and keep updating power query which is available at local excel file.
 

sanket_sk

New Member
Joined
Dec 27, 2016
Messages
45
Office Version
365
Platform
Windows
B
 

sandy666

Well-known Member
Joined
Oct 24, 2015
Messages
5,830
so create query in your local file to the file (files) on OneDrive (usually files on OneDrive online are reproduced in your local OneDrive folder)
 

sanket_sk

New Member
Joined
Dec 27, 2016
Messages
45
Office Version
365
Platform
Windows
Could you please share steps to perform this activity
 

sandy666

Well-known Member
Joined
Oct 24, 2015
Messages
5,830
Data tab - New Query - From File - From Worksheet (for single file)
if you want data from another file do the same for another file
or
Data tab - New Query - From Other Sources - From Web (you'll need url to the file)
 

jrg24

New Member
Joined
Aug 6, 2010
Messages
49
I assume you can access the Onedrive source file from windows explorer? If so, create your query by accessing the local file (get data >> from file, etc.) After your query is created, replace the top line with the following:

Rich (BB code):
Source = Excel.Workbook(Web.Contents("File URL"), null, true),
To get the source URL, open the file on your computer. Go to file >> info At the top you will see a path that says something like "One Drive >>folder >> folder". You should see an option that says "copy path (if you dont see that, right click and you should get the option.) Paste the path into where it says File URL above. The URL must be in quotes. At the end of the URL you will see "?web=1" after the .xlsx. You need to delete this from the URL.
 

Watch MrExcel Video

Forum statistics

Threads
1,102,565
Messages
5,487,588
Members
407,605
Latest member
PACULA

This Week's Hot Topics

Top