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
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
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.