This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I have a Power BI report that's been published into the online service. It works fine. I now want to automatically extract data from a matrix within the report.
I have created a flow in Power Automate to do this: I copied the DAX behind the matrix from Power BI's Performance Analyzer, and pasted it into a variable within my flow. I then created a task to use the Power BI REST API to run a query against the report's dataset, setting my variable as the query text.
However, the task gives me this error when I run it:
Cloud connector call failed with status code 'BadRequest'.
Does anyone know why this might be happening and how I can fix it please?
Hi @SRJPBI,
When using this API from Power Automate, a 400 BadRequest is commonly caused by request‑formatting issues rather than the DAX logic itself:
Ensure the request body follows the documented format:
{
"queries": [
{ "query": "<DAX query text>" }
]
}
In addition, please verify the documented prerequisites:
For troubleshooting, you can also test with a simpler SUMMARIZECOLUMNS query to confirm the API call succeeds before adding more complex logic.
For your reference: Datasets - Execute Queries - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Best regards,
Ganesh Singamshetty
Hi @SRJPBI,
Thank you for posting your query in the Microsoft Fabric Community Forum, and thanks to @Kagiyama_yutaka for sharing valuable insights.
Could you please confirm if your query has been resolved by the provided solutions? This would be helpful for other members who may encounter similar issues.
Thank you for being part of the Microsoft Fabric Community.
I think the BadReq comes from the visual DAX dragging calc‑lineage the API can’t read,
so keep only the one EVALUATE table that returns rows—if it still breaks, run that line in DAX Studio n see what op won’t fold.
This doesn't seem to fix the issue. Here is my original code:
And here is what I changed it to:
Both versions return the same error.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |