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
vsslasd1
Helper III
Helper III

Get a list of all .PBIX files on a SharePoint Site in PowerBI

Hello,

Trying to get a list of all .PBIX files on a SharePoint Site within PowerBI itself. 

 

I've tried the Get Data | SharePoint Folder, etc. and am looking to return all PBIX files in the entire SharePoint site from all of the folders in the SharePoint O365 Site(s) into a PowerBI Table. 

 

Thank you

1 ACCEPTED SOLUTION
edhans
Super User
Super User

As soon as you connect, the first thing you will see is a file and folder listing.

 

Filter the EXTENSION field by PBIX files. You might need to filter by PBIX and pbix as the filter is typcially case sensitive.

 

 

let
    Source = SharePoint.Files("https://tenant.sharepoint.com/sites/sitename/", [ApiVersion = 15]),
    #"Filtered Rows" = Table.SelectRows(Source, each ([Extension] = ".pbix" or [Extension] = ".PBIX"))
in
    #"Filtered Rows"

 

 

Then remove the columns you don't need and load the table. 

 

If you are trying to get all PBIX files from all SharePoint sites in the tenant, you probably need PowerShell to do that. Power BI works on one site at a time.



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!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

1 REPLY 1
edhans
Super User
Super User

As soon as you connect, the first thing you will see is a file and folder listing.

 

Filter the EXTENSION field by PBIX files. You might need to filter by PBIX and pbix as the filter is typcially case sensitive.

 

 

let
    Source = SharePoint.Files("https://tenant.sharepoint.com/sites/sitename/", [ApiVersion = 15]),
    #"Filtered Rows" = Table.SelectRows(Source, each ([Extension] = ".pbix" or [Extension] = ".PBIX"))
in
    #"Filtered Rows"

 

 

Then remove the columns you don't need and load the table. 

 

If you are trying to get all PBIX files from all SharePoint sites in the tenant, you probably need PowerShell to do that. Power BI works on one site at a time.



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!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

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.

Top Solution Authors
Top Kudoed Authors