Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17903

remove "report usage metrics report" showing on embedded application

$
0
0

I am dealing with an embedded application that is getting reports via this C# repository method

 

                using (var client = new PowerBIClient(new Uri(_powerBiSettings.MainAddress), tokenData.tokenCredentials))
                {
                    var reports = await client.Reports.GetReportsInGroupAsync(_powerBiSettings.GroupId);
                    return reports.Value
                                  .Select(rep => new ReportSummary {ReportId = Guid.Parse(rep.Id), Name = rep.Name})
                                  .ToList();
                }


However in the list of reports, I am getting back a report called "Report Usage Metrics Report" which is a power bi default report for showing metrics of how many people are using my reports.

 

The way I am removing this report is adding the linq statement.

                    return reports.Value
                                  .Select(rep => new ReportSummary {ReportId = Guid.Parse(rep.Id), Name = rep.Name})
                                  .ToList();

Is there some other way to remove this report from the list?

 

Thanks.


Viewing all articles
Browse latest Browse all 17903

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>