microsoft / microsoft/powerbi-powershell
Get-PowerBIReport feature: add PageCount property? (And similar for dashboards)
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 413
- Forks
- 134
- Avg merge
- 33m
- Merged PRs (30d)
- 1
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Get-PowerBIReport and Get-PowerBIDashboard entry points and review the Power BI REST API pages and tiles endpoints linked in the issue. Define how the count properties and the performance threshold or opt-in behavior should work, then verify that returned reports and dashboards expose the requested counts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100