Skip to content

avinmathew/extract-powerbi-fields

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

Extract Power BI Fields

This PowerShell script will extract a list of fields from a folder that contains .pbix or .pbit files. This is useful when undertaking impact analysis when changing a data model, to see which reports will be impacted when removing or renaming fields/tables.

Usage

Extract fields to fields.csv for Power BI reports in the current directory:

Extract-Fields

Extract fields to a named CSV for Power BI reports in a specified directory:

Extract-Fields -ReportsPath C:\reports -CsvPath C:\reports\pbifields.csv

To overwrite an existing CSV file, use the -Force parameter.

Limitations

Due to the complexities of Layout structure with filters on visuals, I've taken a shortcut and used regex rather than JSON navigation to mop up any missing properties not found the the first two passes. This will result in the Table column in the CSV file being blank in these cases.

About

PowerShell script that extracts a list of fields from a folder that contains Power BI .pbix or .pbit files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published