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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
anaorca1990
Helper I
Helper I

data query

Hi, i have a question regarding the data source of POWER BI, i used EXCEL to develop the data and then i conect the tables of excel with the queries on power bi, the problem that i have is that the excel spreadsheet that i use is save in my computer, but i would like to save it online maybe in sharepoint? so other users that access to it and change from there if need it. 

 

hope i explain myself.

 

thank you 

2 ACCEPTED SOLUTIONS
ChrisMendoza
Resident Rockstar
Resident Rockstar

@anaorca1990,

 

Yes, I have several Excel files saved in a SharePoint site that others update the tables in, so this is doable. If I recall, the difficult part is re-establishing the filepath/URL since you've likely already saved to your local filepath. That being said, it is not difficult to re-establish those connections.

 

You probably have something like the below in your Source:

= Excel.Workbook(File.Contents("C:\Users\yourUsername\Desktop\Book99.xlsx"), null, true)

You'll then need to save that file to your Sharepoint and change the Source to the Site URL to something like:

= SharePoint.Files("https://your.sharepoint.com/someFolder/", [ApiVersion = 15]),

You'll have to change the Navigation Applied Step as well.

 

*Make sure to SAVE all your Advanced Editor steps in a txt file because you will likely lose the next steps when you insert/change the Navigation* you should be able to paste them right back in after you remove the "old" Source & Navigation steps.

 

Save a backup first then try it out to see how it works.

 

 






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



View solution in original post

@anaorca1990,

 

I don't understand. You've tried to do as I suggested and were unsuccessful and now you're wanting to know if you should start over?

 

If you're making a new Dashboard in Power BI then you still have to Get Data so you're likely still going to have an issue making the connection to the SharePoint.

 

Did you get an error message? Share Please.

 

My best guess is that you included subfolders in your URL, The Navigation step in the Query Editor is how you get to the file to get to the tables.

 

sharePoint-siteURL.png

 

So if your SharePoint URL looks like:

https://your.sharepoint.com/someFolder/a_whole_bunch_of_stuff".aspx

You should only need to input the root in the above window:
 

https://your.sharepoint.com/someFolder/

 

Hope that helps.






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



View solution in original post

5 REPLIES 5
ChrisMendoza
Resident Rockstar
Resident Rockstar

@anaorca1990,

 

Yes, I have several Excel files saved in a SharePoint site that others update the tables in, so this is doable. If I recall, the difficult part is re-establishing the filepath/URL since you've likely already saved to your local filepath. That being said, it is not difficult to re-establish those connections.

 

You probably have something like the below in your Source:

= Excel.Workbook(File.Contents("C:\Users\yourUsername\Desktop\Book99.xlsx"), null, true)

You'll then need to save that file to your Sharepoint and change the Source to the Site URL to something like:

= SharePoint.Files("https://your.sharepoint.com/someFolder/", [ApiVersion = 15]),

You'll have to change the Navigation Applied Step as well.

 

*Make sure to SAVE all your Advanced Editor steps in a txt file because you will likely lose the next steps when you insert/change the Navigation* you should be able to paste them right back in after you remove the "old" Source & Navigation steps.

 

Save a backup first then try it out to see how it works.

 

 






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



hello 

 

sorrry i have another question what if im making a new dashboard in power bi, i havent been able to create the connection with sharepoint.

@anaorca1990,

 

I don't understand. You've tried to do as I suggested and were unsuccessful and now you're wanting to know if you should start over?

 

If you're making a new Dashboard in Power BI then you still have to Get Data so you're likely still going to have an issue making the connection to the SharePoint.

 

Did you get an error message? Share Please.

 

My best guess is that you included subfolders in your URL, The Navigation step in the Query Editor is how you get to the file to get to the tables.

 

sharePoint-siteURL.png

 

So if your SharePoint URL looks like:

https://your.sharepoint.com/someFolder/a_whole_bunch_of_stuff".aspx

You should only need to input the root in the above window:
 

https://your.sharepoint.com/someFolder/

 

Hope that helps.






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



thank you for your answer, also is it possible to use one drive as well?

@anaorca1990

 

Haven't tried. Looking at the connection option for Get Data I see a MS Exchange Online. Maybe that will work?






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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