Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
SRJPBI
Frequent Visitor

Power BI REST API - why does my cloud connector call fail with 'BadRequest'?

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?

 

2 REPLIES 2
v-ssriganesh
Community Support
Community Support

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.

Kagiyama_yutaka
Helper II
Helper II

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.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.