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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
dolicd
New Member

Communicate with a REST API to fetch and retrieve data

Hi. 

I need to use a REST API to retrieve data that should be visualized in PBI. As the resulting data from the REST depend on the input which I create in PBI I need to be able to do POST and GET on the REST API. As far as I see this does not seem to be possible in PBI. We are thinking of a solution which combines the useage of DAX language and Python. Prepare teh data request in DAX, hand over to Python, do the API call in Python and hand over the result to DAX again. 

Is this useful? Does anyone has any experience with this? Thanks

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

@dolicd  Power Query supports HTTP GET and POST commands via Web.Contents() calls  (for POST specify a "content" payload).

You can use Power BI URL buttons too, but only for GET calls, and you can't process the returned data in DAX.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

@dolicd  Power Query supports HTTP GET and POST commands via Web.Contents() calls  (for POST specify a "content" payload).

You can use Power BI URL buttons too, but only for GET calls, and you can't process the returned data in DAX.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.