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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
rafal_walisko
Helper I
Helper I

Report views are different in Portal and from the Rest API

Hello,

I've used powerbi rest api

https://api.powerbi.com/v1.0/myorg/admin/activityevents + &$filter=Activity eq 'viewreport' to obtain all the views from last 30 days.
It worked fine but I see the number of views is different than the number of views in Powerbi Service. Can someone explain why it is?
7 REPLIES 7
watts_jim
Helper II
Helper II

Same user account ?

yes, Im checking it as a Powerbi Admin.

I meant the account that is running the commands in the API - I'm presuming you go through an authentication process though

yes, and it is the same account.

watts_jim
Helper II
Helper II

Are you refreshing them both at the same time ?

yes, in the workspace I see above 400 views for one report

 

rafal_walisko_0-1675776933784.png

 

Where from the API I got only 2 views event's in last 30 days.

Thats a huge difference.

Hey @rafal_walisko,

I faced the same problem yesterday.

The solution for me was to create a while loop checking whether the continuationUri is Null. If not, then send a get request to the continuationUri and get activityEventEntities.

Please tell me if it helps you.

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.