get_model_offline
Reads the model from a closed .pbix file: tables, columns, data types, DAX measures, relationships, and M expressions. Automatically opens and closes Power BI Desktop, no manual session needed.
Instructions
Read the model of a CLOSED .pbix: tables, columns with data types, measures with their DAX, relationships and named M expressions. Briefly opens the file in the local Power BI Desktop (a Desktop window appears), reads the model via TOM, then closes Desktop. The offline form of get_model_summary - no session / no manually-open Desktop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pbixPath | Yes | path to the closed .pbix | |
| timeoutSec | No | seconds to wait for the model to load before giving up (default 180) |