export_to_csv
Exports DAX query results from a Power BI semantic model to a timestamped CSV file, returning the file path, row count, and column count.
Instructions
Export DAX query results to a timestamped CSV file.
Returns JSON with file_path, row_count, and column_count.
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": {
"connection_name": "<connection_name>",
"query": "<query>",
"output_dir": "<output_dir>"
},
"name": "export_to_csv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| max_rows | No | ||
| output_dir | Yes | ||
| connection_name | Yes | ||
| connections_dir | No | Connections | |
| filename_prefix | No | export |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |