Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I have successfully started to use the new support for DAX query using Power BI Rest APIs.
However I have encountered an issue which seems to be undocumented.
Authenticating using a service principal (AAD application) and querying a Power BI dataset which uses mixed mode (DQ to PBI dataset) returns an error 401 unauthorized PowerBINotAuthorizedException.
The very same REST API call to a dataset which does not have mixed mode, i.e. only import, works fine.
The dataset which causes issues has a DQ to a remote Power BI dataset in mixed mode. Using the New functionality DirectQuery for Power BI datasets. The very same REST API call directly to the remote dataset works OK.
The AAD App has proper API permissions for Power BI Service (Dataset.Read.All). Service principal have Admin permissions in both remote Power BI dataset workspace as well as on the workspace where the querying dataset is located.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.