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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Jessica_17
Helper IV
Helper IV

Get text box + table from sharepoint in power BI

Hello All,
I want to get multiple excel data which is in sharepoint into 1 table in power BI.

Data structure of all excel file is like this, which has both columns and text box

Jessica_17_1-1737233750147.png

 

And in Power BI I want the output like the screenshot below which has both text box and table data of all excel and its tab into one, table in power BI. 

NOTE:- Each excel has multiple tabs too, so we need data of all tabs too

Jessica_17_2-1737233770631.png

 

Can anyone please help me on this?

 

 

 

1 ACCEPTED SOLUTION

1st step you can use VBA to get the value of the textboxes to cells :

https://stackoverflow.com/questions/21673105/get-the-value-of-a-textbox-to-a-cell

 


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

View solution in original post

10 REPLIES 10
rohit1991
Super User
Super User

hi @Jessica_17 

 

Unfortunately, Power BI can’t natively pull text directly from Excel text boxes or shapes, whether your files are in SharePoint or anywhere else. It’s a technical limitation that trips up a lot of people.

 

Here’s what you can do:

 

1. For all your table data (columns, rows) from all Excel tabs: Power BI and Power Query are great at this! Just connect to your SharePoint folder, combine the Excel files, and pull all the sheets/tables into one table. You can add columns for the file/tab names if needed no problem, and this process is automatable and refreshes on a schedule.

 

2. For the text box/comment/note info: Power BI (and Power Automate) cannot read data from Excel text boxes or shapes only from actual worksheet cells. If you have any control over the files, the best solution is to put those notes or comments into a cell (maybe above the table or in a hidden “Notes” cell). Then Power BI can grab them just like any other data and combine them as you want.

 

3. If the text box content must stay as a shape: The only way to automate getting that data is by running a VBA or Python script to extract the text from the box into a cell before your Power BI/Power Automate refresh. After that, your automated Power BI workflow will include everything.

 

Table/sheet data: fully supported, easy to automate. Text box content: needs to be in a cell for automation. Otherwise, use a script to copy it over before your refresh.

 


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

Hi @rohit1991 ,

Text box is not inside a cell, can we automate the process of copy pasting process of text box into cell, as there are so many excel sheet + tab which cannot be done manually and its should be done monthly basis.

danextian
Super User
Super User

Hi @Jessica_17 


To connect to multiple files, you'll need to use the SharePoint folder connection. While the Query Editor's GUI includes a "combine and transform" feature, it is limited to a single tab in a workbook, making it unsuitable if you need to connect to multiple tabs. I have a YouTube tutorial demonstrating how to use the folder connection for this purpose. The SharePoint folder connection works similarly to a regular folder connection, with the main difference being that for SharePoint, you must connect to the site's base URL and filter the path to the desired folder, as direct folder connections are not an option. After that, you can transform a single tab and apply those transformations across all tabs and workbooks (covered in the tutorial).

 

Things that are not possible:

  • Power BI cannot retrieve data directly from textboxes in Excel. It only supports data extraction from Sheets, Tables, and Defined Names, not from other objects such as textboxes.
  • When row categories in a hierarchy are merged at a higher level, lower-level categories are displayed as itemized entries relative to the levels above or below, and it appears that below screenshot will become part of the value area and merging of different cells is not possible.

 

danextian_0-1737246786382.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Hi @danextian 
Thanks for the reply, but is their any even using power automate too, to make this scenrio feasible? and for col1 and col2, we can have same values in multiple rows instead of combining, is that feasible? Like the screenshot below.

Jessica_17_0-1737273813881.png

 

The look of your table is feasible but the data from the textbox is not. You will need to use VBA to get the data from the textboxes and save them in the worksheet.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

HI @danextian 

Thanks for replying.

AmiraBedh
Super User
Super User

Can you please provide the input excel file in Google Drive ?


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

HI @AmiraBedh 

Here is the input file and output in the same excel, please let me know if you can access it.
https://drive.google.com/drive/folders/1oQyFknDX9c5lA-ANcrCUPuMWk577ix0q?usp=sharing
Thanks

1st step you can use VBA to get the value of the textboxes to cells :

https://stackoverflow.com/questions/21673105/get-the-value-of-a-textbox-to-a-cell

 


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

HI @AmiraBedh ,

Thanks for the reply, but is there any solution in Power BI or power automate itself? which can be automated on monthly basis without any human intervention.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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