Edit Semantic Model - Generates a DAX expression for a calculated column based on the provided promp
Generates a DAX (Data Analysis Expressions) query based on the provided prompt, using Azure OpenAI's GPT model.
post
Authorizations
Path parameters
workspaceIdstringRequired
datasetIdstringRequired
Query parameters
versionstringOptionalDefault:
The requested API version
1.0
Header parameters
embedfast-user-idstringOptional
Optional User Id
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 DAX query 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}/columns/generateDax HTTP/1.1
Host: admin-embedfastdev-app.azurewebsites.net
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 51
{
"inputPrompt": "text",
"interactionType": "generate"
}
{
"success": true,
"message": "text",
"daxQuery": "text"
}
PreviousEdit Semantic Model - Deletes a table from a Power BI dataset within a specific workspaceNextEdit Semantic Model - Adds a calculated column in a specified table within a Power BI dataset
Last updated