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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
nick9one1
Helper III
Helper III

sharepoint page analytics in power bi

I need to build a report that shows total and unique views for news articles posted to sharpoint. 

I can see that the built in sharepoint analytics has this data, but I do not know what API or source to access it from? Can anyone help?

nick9one1_0-1727087172910.png

 



2 ACCEPTED SOLUTIONS
christinepayton
Super User
Super User

I made the tutorial Amitchandak linked - there is not an easy way to get page-level view metrics data. That tutorial is mainly for site-level aggregate data. The only place I know of that has it at page-level is the audit log, so you could query that, but you'd have to store it somewhere yourself and build up the history over time - it's not trivial to do, so there's not much content out there on it. 

View solution in original post

The API only goes back some number of days (90 iirc?), so if the news article is older than that it'll show less views. That's why you have to store it yourself, otherwise it'll start dropping at the 90 day mark. 🙂

View solution in original post

4 REPLIES 4
christinepayton
Super User
Super User

I made the tutorial Amitchandak linked - there is not an easy way to get page-level view metrics data. That tutorial is mainly for site-level aggregate data. The only place I know of that has it at page-level is the audit log, so you could query that, but you'd have to store it somewhere yourself and build up the history over time - it's not trivial to do, so there's not much content out there on it. 

Thank you. I have tried this following this guide https://www.leonarmston.com/2021/03/office-365-management-api-with-logic-apps-power-automate-includi...

 

As you indicated, it is quite an involved process. I'm storing the output of the logic app in a dataverse table but there seems to be a lot of missing data. e.g. The built in analytics for a news article on sharepoint has 67 views, but I only have 30 rows in my log table 

The API only goes back some number of days (90 iirc?), so if the news article is older than that it'll show less views. That's why you have to store it yourself, otherwise it'll start dropping at the 90 day mark. 🙂

amitchandak
Super User
Super User

@nick9one1 , refer if this can help

https://www.youtube.com/watch?v=qYhXdNDnyfI

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors