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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
campelliann
Post Patron
Post Patron

Connecting to a csv file / folder on remote machine

Hi there, 


Is this possible? If I have the VPN on and I am logged into the remote machine, is it possible for powerbi to get data from the remote machine? How would this work with a csv file on my remote desktop for example


Thanks

1 ACCEPTED SOLUTION
CharbelArmaleh
Resolver II
Resolver II

Use the bellow code

 

let
Source = Excel.Workbook(File.Contents("\\<computer-name>\<folder-path>\<filename>.xlsx"), null, true),
Sheet1_Sheet = Source{[Item="Sheet1",Kind="Sheet"]}[Data],
#"Promoted Headers" = Table.PromoteHeaders(Sheet1_Sheet, [PromoteAllScalars=true])
in
#"Promoted Headers"

 

And when you provide the drive E: don use the :

 

Example

\\99.999.999\E\Users\userID\Desktop\filename.xlsx

Try to open the link and check if you can access the folder from your pc before importing it to power bi

View solution in original post

7 REPLIES 7
CharbelArmaleh
Resolver II
Resolver II

Use the bellow code

 

let
Source = Excel.Workbook(File.Contents("\\<computer-name>\<folder-path>\<filename>.xlsx"), null, true),
Sheet1_Sheet = Source{[Item="Sheet1",Kind="Sheet"]}[Data],
#"Promoted Headers" = Table.PromoteHeaders(Sheet1_Sheet, [PromoteAllScalars=true])
in
#"Promoted Headers"

 

And when you provide the drive E: don use the :

 

Example

\\99.999.999\E\Users\userID\Desktop\filename.xlsx

Try to open the link and check if you can access the folder from your pc before importing it to power bi

Is this possible for connect to remote linux machine?

"DataSource Error: The network path was not found". I have powerbi desktop on my physical machine with my company credentials perhaps I need some sort of authorization...

Hi @campelliann ,

 

Please let me know if you were able to resolve the network path issue. I have a similar requirement and I am stuck on this.

 

Thanks,

Hrishi

Hello

 

Yes sure you should have access to the other machine 

CharbelArmaleh
Resolver II
Resolver II

Hello,

 

You should provide the full path of the csv file

another thing that you can do is to share the file and use the share path into power bi

ex: \\Myfiles\file.csv

 


Did I answer your question? Mark my post as a solution!

Hello, and thank you for the message. 
I was trying something along these lines unsuccessfully...  Remote machine IP and then the path...

= Excel.Workbook(File.Contents("99.999.999\E:\Users\userID\Desktop\filename.xlsx"), null, true)

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.