Forum Discussion

LuigiBros's avatar
LuigiBros
Helper I
1 year ago
Solved

Combining Usage Metrics Reports from Multiple Workspaces into One

Hi everyone, I have a question regarding the Usage Metrics Report. Currently, I'm using separate reports for each of my 10 workspaces, but I'd like to consolidate all the data into a single compreh...
  • ibarrau's avatar
    ibarrau
    1 year ago

    Well the api has been there for a long time, it would be normal if the videos or blog are not from today. You can get started with the API reading this blog: https://blog.ladataweb.com.ar/post/740398550344728576/seteo-powerbi-rest-api-por-primera-vez

    Consider you need code skills in powershell, or like this example shows, python. You could also use another, but those two have material to make it easier with powerbi cmdlets or python simplepbi library.

    I hope that helps,

    P/D Nice catch that feature and adoption doesn't show the report of the app that's viewed

  • Anonymous's avatar
    Anonymous
    1 year ago

    Hello LuigiBros ,

     

    The issue with token expiration in Power BI Service during scheduled refreshes occurs because the service does not automatically regenerate API tokens. To resolve this, the best approach is to create a custom Power BI connector using Power Query SDK that implements OAuth2 authentication with automatic token refresh capability. This custom connector will securely handle token generation and renewal without manual intervention.

    Alternatively, you can use PowerShell, Azure Functions, or Python scripts to automate token refreshes externally and push the data into Power BI using the Power BI REST API. This method ensures seamless data updates while bypassing token expiration issues. Both solutions require proper security configurations and periodic maintenance to ensure consistent performance.

     

    If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.

     

    Thank you.