Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
To collect the data of usage stats in automatic way for more than 30 days we want to collect this information in our database by first getting the data from PowerBI using API. But to achieve that we need datasetid of Usage Metrics Report.
For all our reports we see the dataset in the workspace and ID is within the URL. But we don't see dataset for usage metrics.
How to easiest get this ID?
Solved! Go to Solution.
I've got a solution using PowerShell if anyone interested
Loin to powerbi
> login-PowerBI
To get workspaceIDs
> Get-PowerBIWorkspace | where name -like '*xyz*'
Then use this workspace id to get dataset id:
> Get-PowerBIDataset -workspaceid ID HERE | where-object {$_.name -eq "Usage Metrics Report"}
I've got a solution using PowerShell if anyone interested
Loin to powerbi
> login-PowerBI
To get workspaceIDs
> Get-PowerBIWorkspace | where name -like '*xyz*'
Then use this workspace id to get dataset id:
> Get-PowerBIDataset -workspaceid ID HERE | where-object {$_.name -eq "Usage Metrics Report"}
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 56 | |
| 55 | |
| 32 | |
| 18 | |
| 14 |