Forum Discussion

rafal_walisko's avatar
3 years ago

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

    • rafal_walisko's avatar
      rafal_walisko
      Icon for Helper I rankHelper I

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

       

       

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

      Thats a huge difference.

      • sergeikham's avatar
        sergeikham
        New Member

        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.

      • watts_jim's avatar
        watts_jim
        Icon for Helper II rankHelper II

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