Generate DAX - Generates a DAX expression for a calculated table based on the provided prompt
Authorizations
Path parameters
workspaceIdstringRequired
Enter ID of the workspace for which the calculated table expression is generated.
datasetIdstringRequired
Enter ID of an existing dataset
Query parameters
versionstringOptionalDefault:
The requested API version
1.0
Body
Request model for DAX generation operations.
inputPromptstringRequired
A public property of type string that contains the user prompt for generating a DAX query.
interactionTypestring · enumOptionalPossible values:
A public property of type string that specifies whether to generate or validate the DAX query.
Responses
200
Success: The calculated table DAX expression was successfully generated based on the provided prompt.
400
Bad Request: The server cannot process the request due to client errors, such as malformed syntax or invalid input.
401
Unauthorized: The request lacks valid authentication credentials for the target resource.
500
Internal Server Error: An unexpected server error occurred while processing the request.
post
POST /workspace/{workspaceId}/dataset/{datasetId}/generateTable HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 51
{
"inputPrompt": "text",
"interactionType": "generate"
}
{
"success": true,
"message": "text",
"daxQuery": "text",
"recommendations": "text"
}
PreviousGenerate DAX - Deletes a measure from a specified table within a Power BI datasetNextGenerate DAX - Adds a calculated table in a Power BI dataset within a specific workspace
Last updated