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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Use Power BI to build SharePoint Online Site Usage Statistics

Hi Community,

I am looking to find a way to get the SharePoint Online site usage data for site pages and files posted like total views, unique views etc.

After googling a bit- i came across solutions using Adobe analytics or Google analytics or Azure application Insights or even using Power shell to download audit logs etc. but none seem to detail steps to bring this to fruition.

Can anybody suggest or guide me in the right direction to complete this task?

Thanks

1 ACCEPTED SOLUTION
swise001
Continued Contributor
Continued Contributor

@Anonymous 

The security and compliance section is part of the O365 Admin portal.  
https://docs.microsoft.com/en-us/microsoft-365/compliance/search-the-audit-log-in-security-and-compliance?redirectSourcePath=%252fen-us%252farticle%252fSearch-the-audit-log-in-the-Office-365-Security-Compliance-Center-0d4d0f35-390b-4518-800e-0c7ec95e946c&view=o365-worldwide

You don't necessarily need Powershell to get the data - you can simply export it from the S&C page directly.  (see linked post).   However, if you wanted to later automate the process - you would look to set up some scripts.  

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous ,

refer, if these can help

https://techcommunity.microsoft.com/t5/sharepoint/site-usage-statistics-sharepoint-online-in-powerbi/m-p/375984

https://www.devfacto.com/blog/using-power-bi-for-sharepoint-reports-analytics/

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
swise001
Continued Contributor
Continued Contributor

@Anonymous 

 

Sounds like your question is more about exporting Sharepoint Usage data than about Power BI Desktop. 

 

I believe you would likely best capture usage data from Sharepoint by exporting it from the Office 365 Security and Compliance section.  You'll need at least read only access to from your O365 admin.  With proper credentials you could also likely do this with Powershell cmdlets.  

 

Once you pull the data - stage it somewhere and pull it into Power BI. 

Anonymous
Not applicable

@swise001

Yes, exporting that data from SharePoint online to be able to analyse in Power BI is the ask.

Do you mean Report reader's access in Microsoft 365 Admin Centre or is Office 365 Security and Compliance section different?

Also, would you know of a link detailing the steps- i have no exposure to PowerShell so kind of apprehensive.

 

 

swise001
Continued Contributor
Continued Contributor

@Anonymous 

The security and compliance section is part of the O365 Admin portal.  
https://docs.microsoft.com/en-us/microsoft-365/compliance/search-the-audit-log-in-security-and-compliance?redirectSourcePath=%252fen-us%252farticle%252fSearch-the-audit-log-in-the-Office-365-Security-Compliance-Center-0d4d0f35-390b-4518-800e-0c7ec95e946c&view=o365-worldwide

You don't necessarily need Powershell to get the data - you can simply export it from the S&C page directly.  (see linked post).   However, if you wanted to later automate the process - you would look to set up some scripts.  

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 MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.