Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-PowerBIReport feature: add PageCount property? (And similar for dashboards) #407

Open
philosophicles opened this issue Jun 27, 2024 · 0 comments

Comments

@philosophicles
Copy link

philosophicles commented Jun 27, 2024

Feature request: could the output object from Get-PowerBIReport include an additional int property storing the number of pages the report contains?

The REST API exposes an endpoint listing pages within one report.

GET https://api.powerbi.com/v1.0/myorg/reports/{reportId}/pages

It would be useful to have this additional property as page count is a reasonable proxy for complexity of a report, and might correlate to effort of some development / maintenance tasks, or be considered a bad smell if the number is very high.

Similarly, Get-PowerBIDashboard results could have an int property for the number of tiles on the dashboard.

If performance is a concern given the additional API call per report/dashboard, this could be included by default only when there are fewer than X reports/dashboards in scope (X = 10 or 20 perhaps?). With an additional switch to include this metric for larger result sets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant