Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I have an Angular 13 application that embeds Power BI reports. I get all the reports from a workspaces and display them as links on the application for the user to choose which report to view. I am getting the usage metric report coming over with the list of workspace reports. Looking at the forums it says you need to filter out the usage reports after you get the list of reports. This is fine but I cannot find any code showing how to do this. Please can you provide some code or an explanation of how to filter the usage reports.
Thanks
Hi @Anonymous,
Thanks for your reply. I am using the GetReportsInGroup in the Microsoft.PowerBI.Api nuget package called from C#. I can figure out how to use the filter, but I can't find anywhere WHAT to filter in order to filter out the "Usage Metric Reports". They seem to have the same attributes as normal user-created reports so I cannot see where they differ. Please help.
Lance
Hi @Anonymous thanks for your reply. Yes I am using GetReportsInGroup in the Power BI Rest API to get my list of reports. What I am after is the criteria to filter out from this list the usage metrics reports. I have no problem filtering from a list, what I need is the properties to do this. For example, if the report object had a property called report type and all the system generated usage metric reports had a report type value of "system" and the other reports had a report type value of "custom", I could easily filter out the system usage reports. I cannot find any such property of the Report object to do a filter or if there was a method called something like GetNonSystemReportsInGroup. I could get what I need. I don't mind filtering them out on the server or on the client in javascript but I don't see anyway of doing this.
In this post https://community.powerbi.com/t5/Developer/remove-quot-report-usage-metrics-report-quot-showing-on-embedded/m-p/2187453#M32888 @v-jiascu-msft implied there was a way to do this but I couldn't find any code how to do this.
If you can, please help.
Hi @LanceM
How did you get Web list of your reports from Power BI Workspace? Did you use Power BI Rest API?
If you use Power BI Rest API, I think you use "Get Reports in Group" Function.
Here is the offical blog about Get Reports in Group.
Here is a post with similar requirement to filter in API request.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
8 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |