Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
I am new to power BI rest APIs need some help on power BI APIs with python.
I have a requirement to use power BI rest API with python script.
As part of the requirement I have to create a new dataset using API calls from python and then post data from a json/csv file into the newly created dataset using API calls from python.
Can someone please share some documentation/threads around these topics
I can create a dataset with help of python and rest API calls but can't insert data from a json/csv file into newly created dataset is
Below is the code for creating a dataset
Solved! Go to Solution.
Hi @Anonymous ,
Try to use Power BI REST API to push data from Json file into a Power BI dataset,check the reference below:
https://docs.microsoft.com/en-us/power-bi/developer/automation/walkthrough-push-data
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Given information is very informative.
Could you please also suggest if the same approach can be used to GET data from PowerBI REST API and in this steps i need to load GET response into JSON or db table.
Appreciate your response in advance
@Anonymous , I am not fully clear.
If you need call power bi API to python?
You need to power bi rest APIS
https://docs.microsoft.com/en-us/rest/api/power-bi/
Do you need to call Python in power bi?
How to make Python work with Power BI: https://youtu.be/5D0BkNsu5CM
These is limit what you can use for visual
https://powerbi.microsoft.com/en-us/blog/python-visualizations-in-power-bi-service/
Thanks for your reply!
This is my actual requirement
1. Creating an empty dataset using PBI API calls with python
2. Inseting some data from any file type like (json, csv, text etc..) into the newly created dataset with help of PBI API calls and python
3. Append the existing data with help of PBI API calls and python
I did all above steps with help of postman, and now we are trying to implement the same with help of python.
I did see the video you shared, I can create a table using python script from power BI desktop. But my requirement is using API calls need to create datasets and Insert data.
Hi @Anonymous ,
Try to use Power BI REST API to push data from Json file into a Power BI dataset,check the reference below:
https://docs.microsoft.com/en-us/power-bi/developer/automation/walkthrough-push-data
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
112 | |
95 | |
90 | |
82 | |
69 |
User | Count |
---|---|
161 | |
126 | |
119 | |
109 | |
95 |