Generate DAX - Updates a measure in a specified table within a Power BI dataset
Authorizations
Path parameters
workspaceIdstringRequired
Enter ID of the workspace for which the measure is updated.
datasetIdstringRequired
Enter ID of an existing dataset
Query parameters
currentMeasureNamestringRequired
The current name of the measure being updated
versionstringOptionalDefault:
The requested API version
1.0
Body
Model for creating or updating measures.
tableNamestringRequired
A public property of type string that specifies the table where the measure will be created.
measureNamestringRequired
A public property of type string that specifies the name of the measure.
measureExpressionstringOptional
A public property of type string that contains the DAX expression for the measure.
Responses
200
Success: The measure was updated successfully.
application/json
400
Bad Request: The server cannot process the request due to a client error, such as malformed syntax or invalid table/measure details.
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}/updateMeasure?currentMeasureName=text HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 68
{
"tableName": "text",
"measureName": "text",
"measureExpression": "text"
}
{
"message": "text"
}
PreviousGenerate DAX - Adds a measure in a specified table within a Power BI datasetNextGenerate DAX - Deletes a measure from a specified table within a Power BI dataset
Last updated