API + Postman + Python + XML = Power BI

API + Postman + Python + XML = Power BI

Sharing an example of pulling data from an API and getting it into Power BI. I am keen to hear from the community on a more streamlined approach to extract straight from Power BI.

After reading through API documentation we can use Postman to test the API. See the below screen shots of using a POST.

No alt text provided for this image
No alt text provided for this image

In Postman we can then take the API code in many different formats. Here we take it in the Python > Request

No alt text provided for this image

Copy into Python and save as an xml

No alt text provided for this image

Load the xml in Power BI.

The end result. We now have a report showing the amount of bookings compared to utilised.

No alt text provided for this image

Keen to know if anyone has an example of taking a postman script and inputting that straight into Power BI.

Thanks,

Warren

Emmanuel Chisomnazu Opara

Co-founder & CEO CAMANDA Academy | Founder, CAMANDA Technologies

6 年

Hi, thanks for this post but a little more clarification required... I have my python request and I have saved this in a notepad editor using .xml...However I cannot get my PowerBI to run the query/code inside editor; what do I do? it only returns the content of my xml in text or sometimes error... Kindly advise me. Thanks

回复
Tim Warfe

Senior GIS Officer at Moorabool Shire Council

6 年

Garry Pugh?here's what Warren has come up with for PoolCar....

要查看或添加评论,请登录

Warren Dean的更多文章

社区洞察

其他会员也浏览了