extract_power_query
Extract the complete Power Query M code and query names from a .pbix file's DataMashup part. Read-only access to the underlying M definitions for auditing or analysis.
Instructions
Extract the full Section1.m (the plain-text Power Query M for every query) from a .pbix's DataMashup part, plus the declared query names. READ-ONLY. If there is no DataMashup part, the M is in the DataModel/TMDL - use get_table_m.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pbixPath | Yes | absolute path to the .pbix |