Hi @plebhead22 ,
Do you mean that the data in your Excel table is pulled from other data source using Power Query?
Which data source does your Excel table pull data from?
Further, do you add your Excel table as data source within your app, and want to update the data within it using PowerApps?
Based on the operation that you made, I think you have some misunderstanding on PowerQuery functionality in Excel. The PowerQuery functionality in Excel is used to pull data from external data source into current Excel table. When you refresh your PowerQuery in Excel, it would re-load data from external data again.
In other words, if you made some changes within your Excel table, it just affect your Excel table itself rather than the underlying data source (which your Excel table pull data using PowerQuery from). When you refresh PowerQuery, the data within your Excel table would be overrided with data from the underlying data source again.
As an fixed solution, please consider take a try to add the underlying data source (which your Excel table pull data using PowerQuery from) as data source within your app, then made changes to the underlying data source (rather than your Excel table) using your app.
More details about adding data source within an app, please check the following article:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/add-data-connection
If you want to update the underlying data source using Patch function, please take a try with the following workaround:
Patch( /* <-- Add new record to data source */
'YourDataSource',
Defaults('YourDataSource'),
{
Column1: "xx",
Column2: "xx",
...
}
)
Patch( /* <-- Update an existing record in your data source */
'YourDataSource',
LookUp('YourDataSource', PrimaryKeyColumn = "xxx"), /* <-- Find the record you want to update based on PrimaryKeyColumn in your data source */
{
Column1: "xxx",
Column2: "xxx",
...
}
)
More details about Patch function, please check the following article:
Patch function
Best regards,