Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
How to enable Q&A on dataset using Rest API. it is possible to do it using Rest Api
I am able to do it using online portal , but how to do it using rest api.
Hello Team _ Rongtie, @Anonymous
for all our dataset both of the flags are off, but still it says Q&A not enable for dtaset.
"isEffectiveIdentityRequired": false,
"isEffectiveIdentityRolesRequired": false
Below are the dataset details
{
"@odata.context": "http://wabi-us-east2-redirect.analysis.windows.net/v1.0/myorg/$metadata#datasets/$entity",
"id": "cef04318-fc92-47c6-9ef9-39fa3e3eb295",
"name": "abc",
"webUrl": "https://app.powerbi.com/groups/me/datasets/cef04318-fc92-47c6-9ef9-39fa3e3eb295",
"isRefreshable": false,
"isEffectiveIdentityRequired": false,
"isEffectiveIdentityRolesRequired": false,
"isOnPremGatewayRequired": true,
"targetStorageMode": "Abf",
"createReportEmbedURL": "https://app.powerbi.com/reportEmbed?.....",
"qnaEmbedURL": "https://app.powerbi.com/qnaEmbed?config=..........",
"upstreamDatasets": [],
"users": [],
"queryScaleOutSettings": {
"autoSyncReadOnlyReplicas": true,
"maxReadOnlyReplicas": 0
}
}
Only way to enable is by following below link, but i want to perform below step in code using SDK or rest api.
https://learn.microsoft.com/en-us/power-bi/create-reports/service-q-and-a-direct-query#enable-qa
Hi @Anonymous ,
Yes, it is possible to enable Q&A on a dataset using the Power BI REST API. You can use the "Update Dataset" API to enable Q&A on a dataset. To do this, you need to set the "IsEffectiveIdentityRequired" and "IsEffectiveIdentityRolesRequired" properties to "false" in the request body.
Here is an example of the request body:
{
"isEffectiveIdentityRequired": false,
"isEffectiveIdentityRolesRequired": false
}
You can use any REST client to send the request to the Power BI REST API endpoint. You need to authenticate the request using an Azure Active Directory (AAD) access token.
Please note that enabling Q&A on a dataset requires the dataset to be in a workspace that has a Premium capacity or a Power BI Embedded capacity.
How to Get Your Question Answered Quickly
If it does not help, please provide more details .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
22 | |
17 | |
10 | |
8 | |
8 |
User | Count |
---|---|
37 | |
28 | |
18 | |
17 | |
14 |