Forum Discussion
Exclude usage metric reports from Embedded application
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.