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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
dakdgdl
Helper I
Helper I

Power BI Custom Visual - Web API for edit the data of excel data source

Hi Guys,

 

I'm developing a powerbi custom visual.

There I need to edit the data pieces of individual cells of the excel data source bound with the visual.

I was just researching on that, and found an API endpoint as below.

https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/update-datasources

 

But it doesnt support to edit the data cells, support only to update the entire data source by changing its connection string properties.

 

Please advice me if any of you got to know a way of editing each data cell value by calling an API or some other way.

That way sould be feasible to call an api from the coding of visual or some other programatical way within the visual, not via the powerbi online portal or desktop application.

 

Thanks in advance.

Lasanths

 

2 REPLIES 2
dakdgdl
Helper I
Helper I

Hi Guys,

 

I'm developing a powerbi custom visual.

There I need to edit the data pieces of individual cells of the excel data source bound with the visual.

I was just researching on that, and found an API endpoint as below.

https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/update-datasources

 

But it doesnt support to edit the data cells, support only to update the entire data source by changing its connection string properties.

 

Please advice me if any of you got to know a way of editing each data cell value by calling an API or some other way.

That way sould be feasible to call an api from the coding of visual or some other programatical way within the visual, not via the powerbi online portal or desktop application.

 

Thanks in advance.

Lasanths

lbendlin
Super User
Super User

You cannot modify individual rows/columns of a semantic model.  The smallest change you can make for regular semantic models is a flush and fill of a partition.  For streaming datasets the smallest operation is to push a single row.

 

If you want to modify the content of the Excel file that is the source of your semantic model then you could use the Graph API, but that will be meaningless as that change will not be reflected back in the semantic model until after the next semantic model refresh.  Excel files are not suitable for Direct Query connections, they are Import Mode only.

 

 

Helpful resources

Announcements
December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.