create_measure
Add a DAX measure to a semantic model by specifying name, expression, and target table, with optional formatting and visibility settings.
Instructions
Create a new DAX measure in a semantic model.
Args:
measure_name: Name of the measure to create
dax_expression: DAX formula for the measure
table_name: Name of the table to add the measure to
workspace: Name or ID of the workspace (optional)
model: Name or ID of the semantic model (optional)
format_string: Display format string (e.g., "#,0.00", "0.0%") (optional)
description: Description of the measure (optional)
is_hidden: Whether to hide the measure from client tools (default: False)
ctx: Context object containing client information
Returns:
A dictionary containing success status and the created measure details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| is_hidden | No | ||
| workspace | No | ||
| table_name | Yes | ||
| description | No | ||
| measure_name | Yes | ||
| format_string | No | ||
| dax_expression | Yes |