Forum Discussion
Push Dataset create table API
Hello,
I've created a push dataset with two tables via API as documented here: Push Datasets - Datasets PostDataset - REST API (Power BI Power BI REST APIs) | Microsoft Learn
Now I'd like to add another table to the existing dataset, but couldn't find an API to do this. Can anyone give me a hint how to do this?
The PutTable API (Push Datasets - Datasets PutTable - REST API (Power BI Power BI REST APIs) | Microsoft Learn) only allows to change an existing table, but not creating one.
BR Stefan
9 Replies
- lbendlinSuper User
My experience is that it is faster to start over. Prepare the meta data for both tables, and then (re)fill them. You can use SSMS if that's more convenient for you.
- StefanKainzFrequent Visitor
What do you mean by starting over again? When the push dataset already exists, how can we start over without losing any settings/permissions we have already done?
The scenario is like we have two production machines that collect data in different intervalls, lets say every 10 seconds for machine1 and every 20 seconds for machine2. That are the two tables that already exists. We push data to these two tables via API over the day and delete the data once every night and refill them with the last 4 hours of data.
How to add another table for one more machine (machine3) that collects data every 30 seconds?
- lbendlinSuper User
delete all tables and then submit a single combined request to create the new table structures. Then fill these new tables.
You may be trying to use push datasets in a way that they were not designed for. You may want to look at alternatives like streaming datasets.
- AnonymousNot applicable
Hi StefanKainz ,
Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information and description to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng