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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
NitroMDX
Regular Visitor

Connect to folder withing document library?

Hi,

 

I am trying to pull a report together from 21 separated sites we have on our SharePoint. The way it's set up is we have a documents library and an archive folder within that.

 

Content is auto archived based on content type and retention policy and essentially what I want to do is connect to the archive folder so I can run a report on all archived content across the 21 sites.

 

As far as I know I will have to load the data separately from each of the sites but I can't seem to find a way of connecting to the archive folders within the document library and the site pages which will also have an archive folder.

 

The report I want to run is to show items that are coming up for deletion or have passed the deletion date.

 

Essentially I just need to know how to connect to the archived folder?

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @NitroMDX ,

 

Try connecting to a site first.

vcgaomsft_3-1738893866610.png

Power Query SharePoint folder connector - Power Query | Microsoft Learn

Then create a new parameter:

vcgaomsft_1-1738893754777.png

Replace 'sitename1' with the parameter 'SITENAME' you just created. 

vcgaomsft_5-1738894134640.png

Right-click on the query and select Create Function.

vcgaomsft_7-1738894314767.png

vcgaomsft_8-1738894544638.png

Then introduce a table where you need to place the names of the 21 sites.

vcgaomsft_6-1738894256024.png

Add column --> Invoke custom function

vcgaomsft_10-1738894669431.png

vcgaomsft_11-1738894722846.png

After successfully fetching the data from the site, you can expand the table to further transform the data.

vcgaomsft_12-1738894831726.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @NitroMDX ,

 

Try connecting to a site first.

vcgaomsft_3-1738893866610.png

Power Query SharePoint folder connector - Power Query | Microsoft Learn

Then create a new parameter:

vcgaomsft_1-1738893754777.png

Replace 'sitename1' with the parameter 'SITENAME' you just created. 

vcgaomsft_5-1738894134640.png

Right-click on the query and select Create Function.

vcgaomsft_7-1738894314767.png

vcgaomsft_8-1738894544638.png

Then introduce a table where you need to place the names of the 21 sites.

vcgaomsft_6-1738894256024.png

Add column --> Invoke custom function

vcgaomsft_10-1738894669431.png

vcgaomsft_11-1738894722846.png

After successfully fetching the data from the site, you can expand the table to further transform the data.

vcgaomsft_12-1738894831726.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors