Pushing Data to an Existing Dataset via Power BI API from Desktop Has anyone successfully pushed new data to an existing Power BI dataset using the API from Power BI Desktop

0 votes
Pushing Data to an Existing Dataset via Power BI API from Desktop – Has anyone successfully pushed new data to an existing Power BI dataset using the API from Power BI Desktop?

I’d like to explore how to push new data into an existing Power BI dataset using the Power BI REST API from Power BI Desktop. What are the required API endpoints, authentication steps, and best practices to ensure a successful data push?
Feb 11 in Power BI by Evanjalin
• 13,230 points
39 views

1 answer to this question.

0 votes

To push new data into an existing Power BI dataset using the Power BI REST API from Power BI Desktop, it is important to carefully manage authentication, API setup, and the dataset structure. Following are instructions on how to carry this out:

1. Use Power BI Push Dataset API

In Power BI, the data is allowed to be pushed to streaming or push datasets but not to regular imported datasets. The following are the important API endpoints:

Create Dataset:

POST https://api.powerbi.com/v1.0/myorg/datasets

Define the dataset schema in the request body.

  • Push rows into the dataset:

POST https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/tables/{tableName}/rows
  • Replace {datasetId} and {tableName} with actual values.
  • Send JSON data containing new rows.
Delete all rows (if needed):
DELETE https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/tables/{tableName}/rows

2. Authentication & Token Generation

  • Use Azure AD OAuth2 to authenticate.
  • Generate an access token and pass it in the API request:
Authorization: Bearer {access_token} 

Content-Type: application/json

While using the Azure AD app, make sure that it has permissions for Dataset.ReadWrite.All and Workspace.ReadWrite.All set. Next, here are some good practices and considerations for your Azure AD App-
Establish a streaming dataset for real-time updates. Avoid huge batch updates by pushing small incremental updates. Automate the push of data using Python, PowerShell, or the new Power Automate.

answered Feb 11 by anonymous
• 14,280 points

Related Questions In Power BI

0 votes
0 answers
0 votes
3 answers

How to add an extra column to the existing table in power bi query editor?

Click on edit queries after loading source ...READ MORE

answered Dec 16, 2020 in Power BI by Roshni
• 10,480 points
79,437 views
0 votes
1 answer

How to analyze the data in Power BI using Excel?

Once you've enabled editing and content, Excel ...READ MORE

answered Oct 27, 2020 in Power BI by Gitika
• 65,770 points
714 views
0 votes
1 answer

Install Power BI Desktop

It’s a pretty simple process. All you ...READ MORE

answered Oct 9, 2018 in Power BI by Kalgi
• 52,350 points
1,163 views
0 votes
1 answer

Few tips before I start creating Power BI dashboard

It’s always advisable to begin with the data ...READ MORE

answered Oct 9, 2018 in Power BI by Kalgi
• 52,350 points
984 views
0 votes
1 answer

How do I format the KPI in Power BI

format the KPI by selecting the paint ...READ MORE

answered Oct 9, 2018 in Power BI by Kalgi
• 52,350 points
1,329 views
+1 vote
1 answer
0 votes
1 answer

What are the best practices for improving performance when using DirectQuery in Power BI to retrieve data from SQL Server?

For optimization in Power BI while using DirectQuery with SQL Server, best practices include the ...READ MORE

answered Jan 23 in Power BI by pooja
• 14,280 points
77 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP