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
Radek_Lula
New Member

Usage Metrics - Dataset ID

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?

1 ACCEPTED SOLUTION
Radek_Lula
New Member

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

View solution in original post

1 REPLY 1
Radek_Lula
New Member

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

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