model_report_usage
Analyze report usage to classify model fields as directly bound, indirectly referenced, or unused, so you can identify safe-to-remove columns in Power BI.
Instructions
CROSS-LAYER usage analysis: join the live semantic model (sessionId) with the report (reportSource = a reportSessionId from open_report, a pbirSessionId from read_pbir, or a path to a PBIR .pbix/PBIP folder) and classify EVERY model field three ways. DIRECT = bound in the report - a visual projection, filter, slicer, tooltip, sparkline, sort, or a conditional-formatting/chrome binding (colour measures, icon rules, image URLs, dynamic titles - the bindings naive scanners miss). INDIRECT = reached via a direct measure's DAX lineage, a relationship path between in-play tables, a sort-by column, or a model-internal reference. UNUSED = neither - the safe-to-remove shortlist that find_unused (model-only) cannot produce. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | live model sessionId (connect_model) | |
| reportSource | Yes | a reportSessionId, a pbirSessionId, or a PBIR .pbix / PBIP folder path |