Generate DAX - 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 DAX query is executed.

datasetIdstringRequired

Enter ID of an existing dataset

Query parameters
versionstringOptional

The requested API version

Default: 1.0
Body

Request model for DAX execution operations.

daxQuerystringRequired

A public property of type string that contains the DAX query to execute.

Responses
200
Success: The DAX query was executed successfully, and the result is returned.
application/json
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