get_twbx_lod_expressions
Parses and explains Level of Detail (LOD) expressions in a Tableau workbook, categorizing each calculation by pattern and showing where it is used so you can understand and reuse them.
Instructions
Extracts and explains Level of Detail (LOD) expressions from a Tableau workbook. LOD expressions ({FIXED}, {INCLUDE}, {EXCLUDE}) are powerful but complex calculations. This tool parses each LOD, provides human-readable explanations of what they do, categorizes them by common patterns (percent of total, customer cohort, etc.), and includes learning resources. Ideal for understanding and learning from existing LOD calculations. Use with the mainTwbPath from unpack_twbx output.
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": {
"twbFilePath": "<twbFilePath>",
"includeUsageContext": "<includeUsageContext>"
},
"name": "get_twbx_lod_expressions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| twbFilePath | Yes | ||
| includeUsageContext | Yes |