Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
i was trying to access one of the dataset pubhlished in workspace through power bi rest api where i have admin privileges.The error recieved is "403".
Below mentioned is the code used to excute the query.
Solved! Go to Solution.
You’re getting 403 because you’re using an embed token — that only works for embedding, not for REST API queries.
Fix: Use an Azure AD access token (via MSAL) with scope
https://analysis.windows.net/powerbi/api/.default
Then call executeQueries directly with that token.
Remove the GenerateToken step.
You’re getting 403 because you’re using an embed token — that only works for embedding, not for REST API queries.
Fix: Use an Azure AD access token (via MSAL) with scope
https://analysis.windows.net/powerbi/api/.default
Then call executeQueries directly with that token.
Remove the GenerateToken step.
Hi @Arya_A_R
I would highly recommend using Semantic Link Labs which will make it a lot easier to get your daxquery results. Here is a link where you can start. Code Examples · microsoft/semantic-link-labs Wiki
And here is the command to run the DAX query: sempy_labs package — semantic-link-labs 0.11.3 documentation
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 9 | |
| 8 | |
| 8 |
| User | Count |
|---|---|
| 33 | |
| 30 | |
| 20 | |
| 17 | |
| 16 |