Generate DAX - Generates a DAX expression for a calculated table based on the provided prompt

Generates a DAX expression for a calculated table based on the provided prompt.

post
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
versionstringOptional

The requested API version

Default: 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 · enumOptional

A public property of type string that specifies whether to generate or validate the DAX query.

Possible values:
Responses
200
Success: The calculated table DAX expression was successfully generated based on the provided prompt.
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"
}

Last updated