pbi_find_unused_fields
Audits a semantic model for unused columns and DAX measures across model logic and scanned bound report layouts; warns if no layouts were scanned before cleanup review.
Instructions
Audits one semantic model for columns and DAX measures not referenced inside the model (DAX, relationships, SortBy, Field Parameters, Hierarchies, RLS/OLS, Incremental Refresh, Derived M) or in scanned bound report layouts. Enforces the has_parsed_layouts safety guard: returns empty lists with a prominent warning if no bound report layouts were scanned. Use to review unused bloat before cleanup. Do NOT use to emit executable Tabular Editor code directly (use pbi_generate_cleanup_script after reviewing results).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>"
},
"name": "pbi_find_unused_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Semantic model name or dataset GUID. | |
| table | No | Optional table name filter. | |
| workspace | No | Optional workspace name filter to disambiguate identically named models. | |
| field_type | No | Which unused objects to return: 'all' (default), 'columns', or 'measures'. | all |
| include_hidden | No | Include already hidden unused columns/measures (default: true). | |
| include_calculated | No | Include unused calculated columns (default: true). |