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
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
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