Skip to content

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

@philosophicles

Description

@philosophicles

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions