Hi all,
I am using the remove command as so:
Remove(Table1, 'Main Data Table'.Selected)
However this doesn't actually change the table, only the display on powerapps' side. Is there a way to have this command change the table itself in the same way many of the other powerapps commands do?
Hi Colleen,
If your data source is a table named Table1 in an Excel file residing in either DropBox or OneDrive and you have selected a record in either a datatable control or a gallery control, Remove (Table1, Gallery1.Selected) or Remove(Table1, DataTable1.Selected) should remove it from the Excel table. However, you may want to check to see if the data source for your Remove function is a collection derived from an excel data source and not the data source itself. If it is, that would explain why the record is removed from the display and not from the underlying Excel table.
Hi @Drrickryp,
Unfortunately that isn't the case which is why I am confused as to why it isn't working. The formula is connected directly to the DataTable from excel and yet still isn't changing the table. My other commands linked to the same table (submit, edit etc) are working and changing that table.
Hi @Anonymous,
Can you clarify a few things more explicitly:
Brian
Hi @Anonymous were you able to make this work? I'm having the same issue...
Regards,
Oscar
Hi @oscarmqz,
Are you having the exact same issue as @Anonymous?:
I am having exactly this problem with deleting a row from Excel using PowerApp.
My PowerApp uses both a SharePoint List and an Excel file stored in SharePoint. I create, update and delete the same data from both sources. I use the SharePoint List as my main source for the app, but add the Excel file so that I can download it and update a desktop version of the file (with macros) to refresh the desktop version. This way, I can use the app to provide an interface for viewing and modifying the data and use VBA to refresh that data for various users.
With "Assets" as the SharePoint List and "AssetsXL" as a table in Excel:
Remove(Assets,LookUp(Assets,Title=varTitle));
Remove(AssetsXL,LookUp(AssetsXL,Title=varTitle));
The SharePoint List remove the row as expected but the Excel Table does not.
User | Count |
---|---|
121 | |
88 | |
88 | |
75 | |
66 |
User | Count |
---|---|
217 | |
180 | |
138 | |
96 | |
73 |