Skip to main content

Admin Monitoring of Power BI Usage in Excel

Headshot of article author Ikechukwu Edeagu

We are excited to announce improvements to the Power BI activity logs that would help organizations gain insights on users connecting to Power BI datasets from Excel. With these improvements, admins can now track the usage of Power BI datasets in Excel, helping organizations improve data governance or fulfill regulatory compliance.

Prerequisites

To access the Power BI activity log, you must meet these requirements:

  • Be a global admin or a Power BI administrator
  • Install the Power BI Management cmdlets locally or use the Power BI management cmdlets in Azure Cloud Shell

Monitoring usage of Power BI datasets in Excel with PowerShell

In this example, a Power BI admin wants to identify users connecting to Power BI datasets from Excel Desktop and Excel for the web with the Get-PowerBIActivityEvent activity:

  1. Open PowerShell
  2. Run the Get-PowerBIActivityEvent cmdlet to download event data for the AnalyzedByExternalApplication activity. Theย AnalyzedByExternalApplication activity identifies users who interact with datasets published to the Power BI service from an external application. A sample cmdlet for a dayโ€™s activity data is as below:
Get-PowerBIActivityEvent - StartDateTime โ€˜2022-03-15T00:00:00โ€™ -EndDateTime โ€˜2022-03-15T23:59:59โ€™ -ActivityType โ€˜AnalyzedByExternalApplicationโ€™

The image above shows the script results after running the sample cmdlet in PowerShell. In the script results, the ItemName indicates the application a user is connecting from. If the ItemName is โ€˜Excel.exeโ€™ then the user is connecting to Power BI from the Excel desktop application and if the ItemName is โ€˜Excel Onlineโ€™, the user is connecting from Excel for the web.

Learn more about Power BI Activity Logsย and theย Get-PowerBIActivityEvent.