pbi_create_calculated_column
Add a DAX calculated column to a Power BI .pbip table. Define the expression, data type, and aggregation to extend your model with custom fields.
Instructions
Crea una columna calculada (DAX) en una tabla del modelo .pbip.
data_type: string | int64 | double | decimal | boolean | dateTime.
summarize_by: como se agrega por defecto; 'none' para clasificaciones
y textos, que es lo que casi siempre se quiere.
Escribe en TMDL: requiere el proyecto CERRADO en Power BI Desktop.
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": {
"table": "<table>",
"name": "<name>",
"expression": "<expression>"
},
"name": "pbi_create_calculated_column"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| table | Yes | ||
| data_type | No | string | |
| is_hidden | No | ||
| overwrite | No | ||
| expression | Yes | ||
| request_id | No | ||
| description | No | ||
| summarize_by | No | none | |
| format_string | No | ||
| display_folder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |