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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
jaryszek
Post Prodigy
Post Prodigy

Push dataset and replace existing one connected to report - REST API

hi

 

i have report published and want to change entire dataset connected to using REST API.

Code for my Table imported in M:

 

let
    Source = Excel.Workbook(File.Contents("C:\Users\Jacek\Documents\SourceTables.xlsx"), null, true),
    Table1_Table = Source{[Item="Table1",Kind="Table"]}[Data]
in
    Table1_Table

 

 


1) Do i have to delete whole dataset and post new one? Or i can replace somehow existing one? 
2) What steps should look like and how to write json to post dataset for this one table? 

Please help,
Jacek

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jaryszek ,

 

1) Do i have to delete whole dataset and post new one? Or i can replace somehow existing one? 

I checked the REST API list and there is no API for replacing dataset. 

Datasets - REST API (Power BI Power BI REST APIs) | Microsoft Docs

You may consider replacing the data source and republishing it here.

vcgaomsft_0-1657002372867.png

vcgaomsft_1-1657002775634.png

 

2) What steps should look like and how to write json to post dataset for this one table? 

Not supported.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

5 REPLIES 5
jaryszek
Post Prodigy
Post Prodigy

Hi Gao,

thank you!

according to this documentation:

https://docs.microsoft.com/en-us/rest/api/power-bi/reports/update-datasources

you can update dataset. 

But question is how to do this? 

I could have this table pushed with new dataset also but i do not how to create json to make this working.

Best,
Jacek



Anonymous
Not applicable

Hi @jaryszek ,

 

Yes, but this has some limitations. Only paginated reports are supported to replace data sources of the same type.

vcgaomsft_0-1657011619042.png

I apologize for overlooking this, is your report a paginated report?

What are paginated reports in Power BI Premium? - Power BI

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

o wow thank you. 

It is just a report. 
So no way to connect to existing published report and change json files inside it?

Best,
Jacek


Anonymous
Not applicable

Hi @jaryszek ,

 

Unfortunately, as far as I know there is no way.🙁

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Anonymous
Not applicable

Hi @jaryszek ,

 

1) Do i have to delete whole dataset and post new one? Or i can replace somehow existing one? 

I checked the REST API list and there is no API for replacing dataset. 

Datasets - REST API (Power BI Power BI REST APIs) | Microsoft Docs

You may consider replacing the data source and republishing it here.

vcgaomsft_0-1657002372867.png

vcgaomsft_1-1657002775634.png

 

2) What steps should look like and how to write json to post dataset for this one table? 

Not supported.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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