cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
vsslasd1
Frequent Visitor

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

Accepted Solutions
Super User II
Super User II

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

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
Super User II
Super User II

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

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

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors