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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
v-cgao-msft
Community Support
Community Support

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
v-cgao-msft
Community Support
Community Support

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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