Edit Semantic Model - Executes a DAX query against a specified Power BI dataset

Executes a DAX query against a specified Power BI dataset.

post
Authorizations
Path parameters
workspaceIdstringRequired

Enter ID of the workspace for which the theme details are requested.

datasetIdstringRequired

Enter ID of an existing dataset

Query parameters
versionstringOptional

The requested API version

Default: 1.0
Header parameters
embedfast-user-idstringOptional

Optional User Id

Body

Represents the request to execute a DAX query against a Power BI dataset.

daxQuerystring | nullableOptional

The DAX query to be executed.

Responses
200

Success: The DAX query was executed successfully, and the result is returned.

post
POST /workspace/{workspaceId}/dataset/{datasetId}/executeDax HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 19

{
  "daxQuery": "text"
}
{
  "success": true,
  "message": "text",
  "result": "text"
}

Last updated