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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
ydarra02
Regular Visitor

Automate API Calls in Power BI ?

I am looking for a way to make API Calls in Power BI through buttons or Power Automate which would call that specific data from database, but I can't connect my dashboard to the database directly I have to make an GET request via API that will send back the desired data to Power BI and then onto an already created dashboard with basic schema as it's base(i.e. saved in .pbit format link to data as per viewers request then show it). The database already has RLS implemented so users can view only the data available to them, and API returns data in json form

P.S. --> The database is not on any Microsoft platform, and not very experienced with Power BI as well😓

How should I go about it ??

I was looking into options for this and found either I use Power Automate or JavaScript or Python that does API Calling but didn't went too far

2 REPLIES 2
ydarra02
Regular Visitor

Well @Sahir_Maharaj your response does add a new option for me but if in case I use M Query,I have a few questions regarding that;
First, in the customer view when he/she will look at the dashbaord and they need to apply filters how would I pick those filters from slicers and take them as input for that M Query and use GET or PUSH API to get data and use that as base or source data for my dashboard ?
Secondly how will these API Resuests implementation work like what more will be needed to go ahead with this ?

Sahir_Maharaj
Super User
Super User

Hello @ydarra02,

 

Using Power Automate is likely the most user-friendly way to handle API calls and automate data refreshes. Power It can be easily created and managed without requiring extensive coding knowledge, and they can handle the API calls, parse the data, and trigger dataset refreshes in Power BI.

 

Alternatively, if you are open to using Power Query M code, you can directly make API calls from Power BI Desktop, though this requires some understanding of how to structure API requests and handle JSON data.

 

Whichever method you choose, ensure you have a valid authentication mechanism in place for API calls.

 

Hope this helps.


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ About: https://sahirmaharaj.com/about.html
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors